Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 107.2 kB / 17.06 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 51.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2717, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.004274/0.276, allocations: 2.026 MB / 402.3 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.2774, allocations: 0.5726 MB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.2776, allocations: 4 kB / 402.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.348e-05/0.2777, allocations: 15.8 kB / 402.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.278, allocations: 47.62 kB / 402.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004614/0.2785, allocations: 98.17 kB / 403 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.2788, allocations: 183.3 kB / 403.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.279, allocations: 53.45 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.2793, allocations: 79.7 kB / 403.3 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.2795, allocations: 83.61 kB / 403.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.698e-05/0.2795, allocations: 16 kB / 403.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.55e-05/0.2796, allocations: 16 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.387e-05/0.2796, allocations: 31.91 kB / 403.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.2798, allocations: 79.59 kB / 403.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.2801, allocations: 166.3 kB / 403.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.2801, allocations: 3.984 kB / 403.7 MB, free: 5.395 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.068e-06/0.2801, allocations: 4 kB / 403.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2801, allocations: 0 / 403.7 MB, free: 5.391 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009994/0.2811, allocations: 474.6 kB / 404.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.2812, allocations: 12.03 kB / 404.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.747e-05/0.2813, allocations: 42.73 kB / 404.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.131e-05/0.2813, allocations: 16.84 kB / 404.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.2816, allocations: 196.2 kB / 404.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.2816, allocations: 12.38 kB / 404.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.932e-05/0.2816, allocations: 4.375 kB / 404.4 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003658/0.282, allocations: 160.1 kB / 404.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.282, allocations: 0 / 404.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.282, allocations: 4 kB / 404.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2821, allocations: 4 kB / 404.6 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002891/0.2824, allocations: 95.94 kB / 404.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2834, allocations: 0.4994 MB / 405.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003353/0.2837, allocations: 110.5 kB / 405.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.284, allocations: 68.81 kB / 405.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.284, allocations: 8.141 kB / 405.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.284, allocations: 34.5 kB / 405.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.2841, allocations: 0 / 405.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005254/0.2846, allocations: 149.5 kB / 405.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.2847, allocations: 106.8 kB / 405.7 MB, free: 3.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.2849, allocations: 159.9 kB / 405.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.2849, allocations: 25.7 kB / 405.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.717e-05/0.285, allocations: 116 kB / 406 MB, free: 2.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.2851, allocations: 31.73 kB / 406 MB, free: 2.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.451e-05/0.2851, allocations: 29.7 kB / 406 MB, free: 2.824 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.2853, allocations: 322.8 kB / 406.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.2855, allocations: 39.98 kB / 406.4 MB, free: 2.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.2856, allocations: 80.14 kB / 406.5 MB, free: 2.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/0.2859, allocations: 106.8 kB / 406.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2859, allocations: 3.938 kB / 406.6 MB, free: 2.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003712/0.2863, allocations: 153.4 kB / 406.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.2863, allocations: 8.031 kB / 406.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.2863, allocations: 0 / 406.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.2864, allocations: 4 kB / 406.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005931/0.287, allocations: 87.91 kB / 406.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.2886, allocations: 1.508 MB / 408.3 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.2889, allocations: 32.03 kB / 408.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.2889, allocations: 0 / 408.4 MB, free: 316 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001267/0.289, allocations: 121.8 kB / 408.5 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.712e-05/0.2891, allocations: 7.953 kB / 408.5 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004889/0.2896, allocations: 163.1 kB / 408.6 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.2896, allocations: 3.938 kB / 408.6 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.2896, allocations: 4 kB / 408.6 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2896, allocations: 0 / 408.6 MB, free: 0 / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008413/0.2904, allocations: 472 kB / 409.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2904, allocations: 0 / 409.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.2906, allocations: 23.98 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002126/0.2908, allocations: 28.86 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.2908, allocations: 4 kB / 409.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.2921, allocations: 1.387 MB / 410.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2921, allocations: 0 / 410.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006286/0.2928, allocations: 301.1 kB / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.86e-05/0.2928, allocations: 93.03 kB / 410.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.2929, allocations: 7.938 kB / 410.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.293, allocations: 20.05 kB / 411 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.2931, allocations: 3.984 kB / 411 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.2931, allocations: 4 kB / 411 MB, free: 13.43 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001074/0.2932, allocations: 122.1 kB / 411.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2932, allocations: 0 / 411.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.2935, allocations: 39.95 kB / 411.1 MB, free: 13.27 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009732/0.2945, allocations: 0.8311 MB / 412 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007091/0.2952, allocations: 139.8 kB / 412.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2952, allocations: 0 / 412.1 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.2956, allocations: 167.2 kB / 412.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.2959, allocations: 15.94 kB / 412.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/0.2993, allocations: 2.116 MB / 414.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.2998, allocations: 0.7158 MB / 415.1 MB, free: 9.125 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.052e-05/0.2998, allocations: 8.547 kB / 415.1 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.075e-05/0.2999, allocations: 39.42 kB / 415.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of SimCode: time 2.004e-06/0.2999, allocations: 0 / 415.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02958/0.3295, allocations: 3.348 MB / 418.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.58, allocations: 22.3 kB / 418.5 MB, free: 5.863 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches