Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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.001728/0.001728, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001503/0.001503, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2377/0.2377, allocations: 46.96 MB / 361.7 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 71.89 kB / 0.4969 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3627, allocations: 66.03 MB / 0.5613 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003541/0.3662, allocations: 1.621 MB / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.3676, allocations: 0.5599 MB / 0.5635 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.3678, allocations: 3.938 kB / 0.5635 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.3679, allocations: 7.875 kB / 0.5635 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.186e-05/0.368, allocations: 23.84 kB / 0.5635 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.3685, allocations: 87.47 kB / 0.5636 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002655/0.3688, allocations: 119.7 kB / 0.5637 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.3689, allocations: 23.97 kB / 0.5637 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.369, allocations: 47.84 kB / 0.5638 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.3691, allocations: 43.77 kB / 0.5638 GB, free: 1.703 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.3692, allocations: 8 kB / 0.5638 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.467e-05/0.3692, allocations: 8 kB / 0.5638 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.351e-05/0.3693, allocations: 23.92 kB / 0.5639 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.855e-05/0.3693, allocations: 31.8 kB / 0.5639 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002289/0.3696, allocations: 91.56 kB / 0.564 GB, free: 1.543 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3696, allocations: 4 kB / 0.564 GB, free: 1.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3696, allocations: 0 / 0.564 GB, free: 1.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.3696, allocations: 0 / 0.564 GB, free: 1.539 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009143/0.3705, allocations: 358.7 kB / 0.5643 GB, free: 1.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.369e-05/0.3705, allocations: 8.031 kB / 0.5643 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.167e-05/0.3706, allocations: 4.188 kB / 0.5643 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.732e-05/0.3706, allocations: 34.75 kB / 0.5644 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.319e-05/0.3707, allocations: 16.88 kB / 0.5644 GB, free: 1.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.3711, allocations: 142.4 kB / 0.5645 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.3711, allocations: 8.375 kB / 0.5645 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.77e-05/0.3712, allocations: 8.375 kB / 0.5645 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003451/0.3715, allocations: 108.2 kB / 0.5646 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.3715, allocations: 0 / 0.5646 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.3715, allocations: 0 / 0.5646 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3715, allocations: 4 kB / 0.5646 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.3717, allocations: 51.97 kB / 0.5647 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009475/0.3727, allocations: 347.6 kB / 0.565 GB, free: 368 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.373, allocations: 102.5 kB / 0.5651 GB, free: 256 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.3732, allocations: 28.92 kB / 0.5651 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.3732, allocations: 4 kB / 0.5651 GB, free: 220 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002689/0.3734, allocations: 99.3 kB / 0.5652 GB, free: 108 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.3734, allocations: 7.938 kB / 0.5652 GB, free: 100 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004977/0.3739, allocations: 141.5 kB / 0.5654 GB, free: 15.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.374, allocations: 55.34 kB / 0.5654 GB, free: 15.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.3741, allocations: 147.5 kB / 0.5656 GB, free: 15.73 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.3742, allocations: 33.7 kB / 0.5656 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.788e-05/0.3742, allocations: 108.1 kB / 0.5657 GB, free: 15.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.3743, allocations: 19.94 kB / 0.5657 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/0.3743, allocations: 29.7 kB / 0.5658 GB, free: 15.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3745, allocations: 318.8 kB / 0.5661 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.3746, allocations: 31.97 kB / 0.5661 GB, free: 15.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.3748, allocations: 53.62 kB / 0.5661 GB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.375, allocations: 77.69 kB / 0.5662 GB, free: 15.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.375, allocations: 0 / 0.5662 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003382/0.3753, allocations: 129.5 kB / 0.5663 GB, free: 14.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3753, allocations: 8 kB / 0.5664 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3754, allocations: 3.938 kB / 0.5664 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.3754, allocations: 0 / 0.5664 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3755, allocations: 15.98 kB / 0.5664 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3755, allocations: 0 / 0.5664 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.3756, allocations: 19.98 kB / 0.5664 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.3756, allocations: 0 / 0.5664 GB, free: 14.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 prepare postOptimizeDAE: time 0.0001247/0.3757, allocations: 129.8 kB / 0.5665 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.3758, allocations: 16.12 kB / 0.5665 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.318e-05/0.3758, allocations: 16.7 kB / 0.5665 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3758, allocations: 4 kB / 0.5665 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3758, allocations: 3.938 kB / 0.5666 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3758, allocations: 0 / 0.5666 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005939/0.3764, allocations: 353.5 kB / 0.5669 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3764, allocations: 0 / 0.5669 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.323e-05/0.3765, allocations: 11.98 kB / 0.5669 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.3765, allocations: 0 / 0.5669 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.3765, allocations: 8 kB / 0.5669 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3765, allocations: 0 / 0.5669 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3765, allocations: 0 / 0.5669 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000488/0.377, allocations: 255.7 kB / 0.5672 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.404e-05/0.377, allocations: 11.94 kB / 0.5672 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.3771, allocations: 3.984 kB / 0.5672 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.3772, allocations: 15.98 kB / 0.5672 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.021e-05/0.3773, allocations: 15.97 kB / 0.5672 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/0.3773, allocations: 0 / 0.5672 GB, free: 13.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.152e-05/0.3774, allocations: 117.2 kB / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3774, allocations: 0 / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002486/0.3776, allocations: 27.86 kB / 0.5673 GB, free: 13.81 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.u) * 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: 1 * 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.0008059/0.3784, allocations: 0.7788 MB / 0.5681 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002876/0.3787, allocations: 75.95 kB / 0.5682 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3787, allocations: 3.938 kB / 0.5682 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.3788, allocations: 39.97 kB / 0.5682 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.3792, allocations: 22.39 kB / 0.5682 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.3818, allocations: 1.69 MB / 0.5699 GB, free: 11.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.419e-05/0.3819, allocations: 89.31 kB / 0.57 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.959e-05/0.382, allocations: 8.484 kB / 0.57 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.725e-05/0.382, allocations: 31.62 kB / 0.57 GB, free: 10.94 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.382, allocations: 0 / 0.57 GB, free: 10.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.4068, allocations: 2.864 MB / 0.5728 GB, free: 8.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.7, allocations: 4.062 kB / 0.5728 GB, free: 8.223 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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: 14.866732595022768]