Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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.001431/0.001431, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 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.002659/0.002659, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.643/1.643, allocations: 230.6 MB / 258.3 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2323/0.2323, allocations: 44.91 MB / 359.6 MB, free: 6.273 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.001988/0.001988, allocations: 69.61 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.374, allocations: 65.47 MB / 0.5578 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003743/0.3777, allocations: 1.941 MB / 0.5597 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.3788, allocations: 0.597 MB / 0.5603 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.055e-05/0.3789, allocations: 0 / 0.5603 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.115e-05/0.379, allocations: 15.86 kB / 0.5603 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002002/0.3792, allocations: 39.7 kB / 0.5603 GB, free: 5.176 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.3795, allocations: 83.81 kB / 0.5604 GB, free: 5.094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.3797, allocations: 151.4 kB / 0.5605 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.3798, allocations: 27.12 kB / 0.5606 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.3801, allocations: 79.69 kB / 0.5606 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.3802, allocations: 63.75 kB / 0.5607 GB, free: 4.777 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.659e-05/0.3802, allocations: 16 kB / 0.5607 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.003e-05/0.3803, allocations: 15.98 kB / 0.5607 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.337e-05/0.3803, allocations: 35.86 kB / 0.5608 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.048e-05/0.3804, allocations: 59.72 kB / 0.5608 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002354/0.3806, allocations: 143.4 kB / 0.561 GB, free: 4.512 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3806, allocations: 0 / 0.561 GB, free: 4.512 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3806, allocations: 0 / 0.561 GB, free: 4.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.3806, allocations: 0 / 0.561 GB, free: 4.512 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008311/0.3814, allocations: 381.8 kB / 0.5613 GB, free: 4.109 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.3815, allocations: 8.031 kB / 0.5613 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.402e-05/0.3815, allocations: 192 / 0.5613 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.147e-05/0.3815, allocations: 38.75 kB / 0.5614 GB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002998/0.3818, allocations: 40.81 kB / 0.5614 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.382, allocations: 142.3 kB / 0.5615 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.382, allocations: 8.375 kB / 0.5615 GB, free: 3.844 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.885e-05/0.3821, allocations: 4.375 kB / 0.5615 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003395/0.3824, allocations: 138.7 kB / 0.5617 GB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3824, allocations: 0 / 0.5617 GB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.3824, allocations: 8 kB / 0.5617 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.3824, allocations: 4 kB / 0.5617 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.3828, allocations: 99.77 kB / 0.5618 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008795/0.3837, allocations: 422.5 kB / 0.5622 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003171/0.384, allocations: 86.52 kB / 0.5623 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.3841, allocations: 44.92 kB / 0.5623 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.3842, allocations: 3.984 kB / 0.5623 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.3842, allocations: 34.56 kB / 0.5624 GB, free: 2.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3842, allocations: 3.938 kB / 0.5624 GB, free: 2.926 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001471/0.3857, allocations: 325.1 kB / 0.5627 GB, free: 2.602 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.39e-05/0.3857, allocations: 102.8 kB / 0.5628 GB, free: 2.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.3859, allocations: 147.8 kB / 0.5629 GB, free: 2.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.3859, allocations: 29.7 kB / 0.5629 GB, free: 2.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.295e-05/0.386, allocations: 116.2 kB / 0.563 GB, free: 2.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.386, allocations: 19.8 kB / 0.5631 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.366e-05/0.3861, allocations: 29.7 kB / 0.5631 GB, free: 2.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3862, allocations: 322.8 kB / 0.5634 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/0.3865, allocations: 59.89 kB / 0.5635 GB, free: 1.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.3868, allocations: 96.23 kB / 0.5635 GB, free: 1.621 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004518/0.3872, allocations: 134.5 kB / 0.5637 GB, free: 1.48 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3872, allocations: 7.938 kB / 0.5637 GB, free: 1.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005347/0.3877, allocations: 177.4 kB / 0.5639 GB, free: 1.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3878, allocations: 4 kB / 0.5639 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3878, allocations: 0 / 0.5639 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3878, allocations: 4 kB / 0.5639 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.3884, allocations: 79.91 kB / 0.5639 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.3899, allocations: 1.405 MB / 0.5653 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.3901, allocations: 31.94 kB / 0.5653 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.3901, allocations: 0 / 0.5653 GB, free: 15.65 MB / 414.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 (9): * Single equations (assignments): 8 * 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.0001295/0.3903, allocations: 125.7 kB / 0.5655 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.768e-05/0.3903, allocations: 12.02 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005411/0.3909, allocations: 166.2 kB / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3909, allocations: 3.984 kB / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.91e-07/0.3909, allocations: 0 / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.3909, allocations: 8.406 kB / 0.5656 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009289/0.3918, allocations: 433.6 kB / 0.5661 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3918, allocations: 3.938 kB / 0.5661 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.392, allocations: 31.97 kB / 0.5661 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.392, allocations: 3.984 kB / 0.5661 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.392, allocations: 7.938 kB / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.392, allocations: 0 / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.392, allocations: 0 / 0.5661 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005749/0.3926, allocations: 263.2 kB / 0.5664 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.938e-05/0.3926, allocations: 7.953 kB / 0.5664 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.3926, allocations: 3.938 kB / 0.5664 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.3928, allocations: 27.97 kB / 0.5664 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.3929, allocations: 7.984 kB / 0.5664 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.3929, allocations: 0 / 0.5664 GB, free: 14.49 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001261/0.393, allocations: 116.6 kB / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.393, allocations: 0 / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.3933, allocations: 28 kB / 0.5665 GB, free: 14.35 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008697/0.3941, allocations: 0.7787 MB / 0.5673 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009415/0.3951, allocations: 175.8 kB / 0.5675 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3951, allocations: 0 / 0.5675 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.3953, allocations: 60.02 kB / 0.5675 GB, free: 13.31 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003852/0.3957, allocations: 19.98 kB / 0.5675 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.3994, allocations: 1.98 MB / 0.5695 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000387/0.3998, allocations: 0.6963 MB / 0.5702 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.479e-05/0.3999, allocations: 16.42 kB / 0.5702 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.862e-05/0.4, allocations: 31.42 kB / 0.5702 GB, free: 10.45 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4, allocations: 0 / 0.5702 GB, free: 10.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/0.4251, allocations: 3.309 MB / 0.5734 GB, free: 7.293 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13.01, allocations: 7.812 kB / 0.5734 GB, free: 7.289 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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: 16.29173982195789]