Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001878/0.001878, 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.002187/0.002187, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.576/1.576, 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.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.2221/0.2221, allocations: 44.93 MB / 359.6 MB, free: 6.074 MB / 286.1 MB " [Timeout remaining time 180] 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.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",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.00205/0.00205, allocations: 67.91 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3504, allocations: 65.47 MB / 0.5577 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003074/0.3535, allocations: 1.617 MB / 0.5593 GB, free: 5.934 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.3547, allocations: 0.556 MB / 0.5598 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.646e-05/0.3548, allocations: 8 kB / 0.5598 GB, free: 5.367 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.355, allocations: 15.8 kB / 0.5599 GB, free: 5.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.252e-05/0.355, allocations: 15.81 kB / 0.5599 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.3554, allocations: 91.75 kB / 0.56 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.3556, allocations: 111.7 kB / 0.5601 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.3557, allocations: 31.95 kB / 0.5601 GB, free: 5.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.081e-05/0.3558, allocations: 43.91 kB / 0.5601 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.538e-05/0.3559, allocations: 39.78 kB / 0.5602 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.5e-05/0.3559, allocations: 12 kB / 0.5602 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.916e-05/0.3559, allocations: 8 kB / 0.5602 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.795e-05/0.356, allocations: 23.91 kB / 0.5602 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.199e-05/0.356, allocations: 35.8 kB / 0.5603 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.3562, allocations: 91.52 kB / 0.5603 GB, free: 4.855 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3562, allocations: 0 / 0.5603 GB, free: 4.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3562, allocations: 0 / 0.5603 GB, free: 4.855 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.3562, allocations: 0 / 0.5603 GB, free: 4.855 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.0007212/0.3569, allocations: 354.8 kB / 0.5607 GB, free: 4.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.357, allocations: 12.03 kB / 0.5607 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.308e-05/0.357, allocations: 192 / 0.5607 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.019e-05/0.357, allocations: 38.75 kB / 0.5607 GB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.3571, allocations: 8.891 kB / 0.5607 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.3574, allocations: 154.3 kB / 0.5609 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.3574, allocations: 384 / 0.5609 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/0.3574, allocations: 16.36 kB / 0.5609 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.3577, allocations: 105.6 kB / 0.561 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.3578, allocations: 0 / 0.561 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.3578, allocations: 0 / 0.561 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.3578, allocations: 0 / 0.561 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.3579, allocations: 51.97 kB / 0.561 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007223/0.3587, allocations: 343.6 kB / 0.5614 GB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003632/0.359, allocations: 102.4 kB / 0.5615 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.3592, allocations: 40.91 kB / 0.5615 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.3592, allocations: 0 / 0.5615 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002819/0.3595, allocations: 103.3 kB / 0.5616 GB, free: 3.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3595, allocations: 0 / 0.5616 GB, free: 3.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004861/0.3599, allocations: 141.5 kB / 0.5617 GB, free: 3.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.697e-05/0.36, allocations: 59.28 kB / 0.5618 GB, free: 3.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.3602, allocations: 152.8 kB / 0.5619 GB, free: 3.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.3602, allocations: 25.7 kB / 0.562 GB, free: 3.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.456e-05/0.3603, allocations: 100.1 kB / 0.5621 GB, free: 2.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.3603, allocations: 27.92 kB / 0.5621 GB, free: 2.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.419e-05/0.3604, allocations: 21.72 kB / 0.5621 GB, free: 2.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3605, allocations: 330.8 kB / 0.5624 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.3606, allocations: 31.97 kB / 0.5625 GB, free: 2.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.3608, allocations: 53.62 kB / 0.5625 GB, free: 2.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.361, allocations: 77.62 kB / 0.5626 GB, free: 2.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.361, allocations: 4 kB / 0.5626 GB, free: 2.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003189/0.3613, allocations: 121.5 kB / 0.5627 GB, free: 2.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3613, allocations: 6.656 kB / 0.5627 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.3614, allocations: 0 / 0.5627 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.3614, allocations: 12.02 kB / 0.5627 GB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.3615, allocations: 8 kB / 0.5627 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3615, allocations: 4 kB / 0.5627 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.749e-05/0.3616, allocations: 19.97 kB / 0.5628 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.3616, allocations: 4 kB / 0.5628 GB, free: 2.172 MB / 398.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.0001053/0.3617, allocations: 120.7 kB / 0.5629 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.3617, allocations: 15.84 kB / 0.5629 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.3618, allocations: 20.72 kB / 0.5629 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3618, allocations: 0 / 0.5629 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3618, allocations: 0 / 0.5629 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3618, allocations: 0 / 0.5629 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/0.3623, allocations: 353.8 kB / 0.5632 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3623, allocations: 0 / 0.5632 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.209e-05/0.3624, allocations: 19.94 kB / 0.5633 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3624, allocations: 288 / 0.5633 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.3624, allocations: 3.984 kB / 0.5633 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3624, allocations: 0 / 0.5633 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3624, allocations: 3.938 kB / 0.5633 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005022/0.3629, allocations: 255.3 kB / 0.5635 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.314e-05/0.363, allocations: 15.94 kB / 0.5635 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.363, allocations: 0 / 0.5635 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.3631, allocations: 19.97 kB / 0.5636 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.3632, allocations: 11.98 kB / 0.5636 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.3632, allocations: 7.984 kB / 0.5636 GB, free: 1.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.876e-05/0.3633, allocations: 112.4 kB / 0.5637 GB, free: 1.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3633, allocations: 3.938 kB / 0.5637 GB, free: 1.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000241/0.3635, allocations: 19.88 kB / 0.5637 GB, free: 1.129 MB / 398.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.000848/0.3644, allocations: 0.7711 MB / 0.5645 GB, free: 340 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003296/0.3647, allocations: 83.95 kB / 0.5645 GB, free: 256 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3647, allocations: 0 / 0.5645 GB, free: 256 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.3649, allocations: 43.95 kB / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.3652, allocations: 23.61 kB / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.3681, allocations: 1.694 MB / 0.5663 GB, free: 14.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001164/0.3682, allocations: 89.25 kB / 0.5663 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.483e-05/0.3682, allocations: 8.5 kB / 0.5663 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.144e-05/0.3683, allocations: 31.42 kB / 0.5664 GB, free: 14.26 MB / 414.1 MB Notification: Performance of SimCode: time 1.293e-06/0.3683, allocations: 0 / 0.5664 GB, free: 14.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02554/0.3939, allocations: 2.874 MB / 0.5692 GB, free: 11.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.02, allocations: 8.062 kB / 0.5692 GB, free: 11.53 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 15.176921732956544]