Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 207.7 MB / 235.3 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 57.8 kB / 347.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2557, allocations: 49.14 MB / 396.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003442/0.2592, allocations: 1.925 MB / 398.3 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.2603, allocations: 0.5756 MB / 398.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.2604, allocations: 6.062 kB / 398.9 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.191e-05/0.2605, allocations: 19.98 kB / 398.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.2607, allocations: 47.64 kB / 398.9 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.2611, allocations: 88.47 kB / 399 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002696/0.2613, allocations: 185.6 kB / 399.2 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.2615, allocations: 34.59 kB / 399.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002354/0.2617, allocations: 84.48 kB / 399.3 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.2619, allocations: 69.06 kB / 399.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.727e-05/0.2619, allocations: 14.94 kB / 399.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.434e-05/0.2619, allocations: 16.25 kB / 399.4 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.262, allocations: 39.31 kB / 399.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.939e-05/0.262, allocations: 68.88 kB / 399.5 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.2623, allocations: 170.1 kB / 399.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2623, allocations: 0 / 399.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2623, allocations: 0 / 399.7 MB, free: 6.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.2623, allocations: 0 / 399.7 MB, free: 6.797 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.0007995/0.2631, allocations: 407.1 kB / 400.1 MB, free: 6.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.2631, allocations: 15.06 kB / 400.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.2632, allocations: 43.27 kB / 400.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.469e-05/0.2632, allocations: 17.58 kB / 400.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.2634, allocations: 146.1 kB / 400.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.2634, allocations: 8.906 kB / 400.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.2634, allocations: 14.48 kB / 400.3 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.2637, allocations: 209.8 kB / 400.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.2638, allocations: 0 / 400.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.2638, allocations: 5.281 kB / 400.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.2638, allocations: 2.844 kB / 400.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000268/0.264, allocations: 96.11 kB / 400.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008473/0.2649, allocations: 454.4 kB / 401.1 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.2652, allocations: 97.28 kB / 401.2 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.2654, allocations: 58.78 kB / 401.2 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.2654, allocations: 9.781 kB / 401.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.2654, allocations: 40.66 kB / 401.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.2654, allocations: 0 / 401.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004586/0.2659, allocations: 143.2 kB / 401.4 MB, free: 5.508 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.2659, allocations: 104.7 kB / 401.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.266, allocations: 157 kB / 401.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.2661, allocations: 29.7 kB / 401.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.348e-05/0.2661, allocations: 129.2 kB / 401.8 MB, free: 5.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.506e-05/0.2661, allocations: 28.86 kB / 401.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.015e-05/0.2662, allocations: 32.86 kB / 401.9 MB, free: 5.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.745e-05/0.2663, allocations: 322 kB / 402.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.2664, allocations: 35.42 kB / 402.2 MB, free: 4.742 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.2665, allocations: 137.5 kB / 402.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.2668, allocations: 98.16 kB / 402.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2668, allocations: 1.125 kB / 402.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003212/0.2671, allocations: 148.8 kB / 402.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.2671, allocations: 6.438 kB / 402.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.2671, allocations: 0.8906 kB / 402.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.2671, allocations: 1.531 kB / 402.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005562/0.2677, allocations: 85 kB / 402.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.2688, allocations: 1.398 MB / 404.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.269, allocations: 27.48 kB / 404.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.2691, allocations: 7.844 kB / 404.1 MB, free: 3.082 MB / 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 9.384e-05/0.2691, allocations: 125.3 kB / 404.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.2692, allocations: 13.95 kB / 404.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004404/0.2696, allocations: 156.8 kB / 404.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2696, allocations: 5.094 kB / 404.4 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.2696, allocations: 0 / 404.4 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2696, allocations: 8.281 kB / 404.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006599/0.2703, allocations: 413.7 kB / 404.8 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2703, allocations: 4 kB / 404.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001329/0.2704, allocations: 23.31 kB / 404.9 MB, free: 2.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002277/0.2707, allocations: 37.73 kB / 404.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.2707, allocations: 1.125 kB / 404.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007784/0.2714, allocations: 1.286 MB / 406.2 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2714, allocations: 4.156 kB / 406.2 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005481/0.272, allocations: 292.6 kB / 406.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.111e-05/0.272, allocations: 17.12 kB / 406.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.2721, allocations: 6.938 kB / 406.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.2722, allocations: 17.36 kB / 406.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.2723, allocations: 5.938 kB / 406.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.2723, allocations: 7.828 kB / 406.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.352e-05/0.2724, allocations: 127 kB / 406.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2724, allocations: 0 / 406.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.2727, allocations: 35.58 kB / 406.7 MB, free: 0.9062 MB / 318.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.0007576/0.2734, allocations: 0.8378 MB / 407.5 MB, free: 172 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006811/0.2741, allocations: 130.1 kB / 407.6 MB, free: 152 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.2741, allocations: 0 / 407.6 MB, free: 152 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.2744, allocations: 161.2 kB / 407.8 MB, free: 24 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002548/0.2747, allocations: 12.62 kB / 407.8 MB, free: 16 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.2786, allocations: 2.098 MB / 409.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.2787, allocations: 103.9 kB / 410 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.88e-05/0.2788, allocations: 15.14 kB / 410 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.65e-05/0.2789, allocations: 42.11 kB / 410.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2789, allocations: 3.938 kB / 410.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0369/0.3158, allocations: 3.92 MB / 414 MB, free: 12.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.66, allocations: 17.02 kB / 414 MB, free: 12.59 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv --start-time 0 --stop-time 6.2832 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0100051 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.092473603785038]