Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001359/0.001359, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001495/0.001495, allocations: 211.6 kB / 23.73 MB, free: 4.387 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.49/1.49, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2405/0.2405, allocations: 46.96 MB / 360.9 MB, free: 4.02 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002364/0.002364, allocations: 75.88 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3678, allocations: 66.03 MB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002535/0.3703, allocations: 0.8086 MB / 0.5614 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002317/0.3706, allocations: 43.83 kB / 0.5614 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.194e-05/0.3706, allocations: 4 kB / 0.5614 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.3708, allocations: 7.875 kB / 0.5614 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.662e-05/0.3708, allocations: 0 / 0.5614 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001299/0.3709, allocations: 23.97 kB / 0.5614 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.371, allocations: 35.92 kB / 0.5615 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3711, allocations: 21.73 kB / 0.5615 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.987e-05/0.3712, allocations: 12 kB / 0.5615 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.507e-05/0.3712, allocations: 19.86 kB / 0.5615 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.3712, allocations: 0 / 0.5615 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.234e-05/0.3712, allocations: 4 kB / 0.5615 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.231e-05/0.3713, allocations: 8 kB / 0.5615 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/0.3713, allocations: 3.938 kB / 0.5616 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.3714, allocations: 51.69 kB / 0.5616 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3714, allocations: 0 / 0.5616 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3714, allocations: 0 / 0.5616 GB, free: 3.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.3714, allocations: 0 / 0.5616 GB, free: 3.199 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004409/0.3719, allocations: 283.1 kB / 0.5619 GB, free: 2.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.3719, allocations: 8.031 kB / 0.5619 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.681e-05/0.3719, allocations: 38.75 kB / 0.5619 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.803e-05/0.372, allocations: 8.891 kB / 0.5619 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002001/0.3722, allocations: 114.5 kB / 0.562 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.3722, allocations: 4.375 kB / 0.562 GB, free: 2.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.3722, allocations: 4.375 kB / 0.562 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.3723, allocations: 54.17 kB / 0.5621 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3723, allocations: 3.938 kB / 0.5621 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.3723, allocations: 4 kB / 0.5621 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3723, allocations: 4 kB / 0.5621 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.473e-05/0.3724, allocations: 15.98 kB / 0.5621 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.3729, allocations: 259.7 kB / 0.5624 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.739e-05/0.3729, allocations: 26.56 kB / 0.5624 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.922e-05/0.373, allocations: 8.922 kB / 0.5624 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-06/0.373, allocations: 0 / 0.5624 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.17e-05/0.3731, allocations: 55.36 kB / 0.5625 GB, free: 2.184 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3731, allocations: 0 / 0.5625 GB, free: 2.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001395/0.3732, allocations: 49.62 kB / 0.5625 GB, free: 2.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.3732, allocations: 59.41 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.3733, allocations: 117.8 kB / 0.5627 GB, free: 1.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.3734, allocations: 25.7 kB / 0.5627 GB, free: 1.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.941e-05/0.3734, allocations: 92.09 kB / 0.5628 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.3734, allocations: 11.94 kB / 0.5628 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/0.3735, allocations: 13.72 kB / 0.5628 GB, free: 1.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3736, allocations: 322.8 kB / 0.5631 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.383e-05/0.3737, allocations: 11.98 kB / 0.5631 GB, free: 1.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.743e-05/0.3737, allocations: 17.89 kB / 0.5631 GB, free: 1.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.296e-05/0.3737, allocations: 25.66 kB / 0.5632 GB, free: 1.387 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3737, allocations: 4 kB / 0.5632 GB, free: 1.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.296e-05/0.3738, allocations: 57.62 kB / 0.5632 GB, free: 1.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.3738, allocations: 4 kB / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.3738, allocations: 0 / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.3738, allocations: 4 kB / 0.5632 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.797e-05/0.3739, allocations: 0 / 0.5632 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.3739, allocations: 4 kB / 0.5632 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.081e-05/0.3739, allocations: 7.891 kB / 0.5632 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.198e-06/0.3739, allocations: 11.97 kB / 0.5633 GB, free: 1.289 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.861e-05/0.374, allocations: 117.9 kB / 0.5634 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.374, allocations: 4 kB / 0.5634 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.239e-05/0.374, allocations: 4 kB / 0.5634 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.374, allocations: 0 / 0.5634 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.374, allocations: 4 kB / 0.5634 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.3741, allocations: 3.938 kB / 0.5634 GB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000364/0.3744, allocations: 265.6 kB / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3744, allocations: 0 / 0.5636 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.896e-05/0.3744, allocations: 8 kB / 0.5636 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3744, allocations: 3.938 kB / 0.5636 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.3745, allocations: 3.938 kB / 0.5637 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3745, allocations: 7.984 kB / 0.5637 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3745, allocations: 4 kB / 0.5637 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.3746, allocations: 147.5 kB / 0.5638 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.24e-05/0.3746, allocations: 3.953 kB / 0.5638 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.3746, allocations: 7.969 kB / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.444e-05/0.3747, allocations: 384 / 0.5638 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.776e-05/0.3747, allocations: 3.984 kB / 0.5638 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.3747, allocations: 4 kB / 0.5638 GB, free: 0.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.478e-05/0.3748, allocations: 91.22 kB / 0.5639 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3748, allocations: 0 / 0.5639 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002184/0.375, allocations: 15.92 kB / 0.5639 GB, free: 0.5195 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005356/0.3755, allocations: 0.6776 MB / 0.5646 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.592e-05/0.3756, allocations: 27.89 kB / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3756, allocations: 0 / 0.5646 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.977e-05/0.3757, allocations: 8 kB / 0.5646 GB, free: 15.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.3759, allocations: 11.03 kB / 0.5646 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.3772, allocations: 1.293 MB / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.506e-05/0.3772, allocations: 71.45 kB / 0.566 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.854e-05/0.3773, allocations: 4 kB / 0.566 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.775e-05/0.3773, allocations: 15.44 kB / 0.566 GB, free: 14.29 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3773, allocations: 0 / 0.566 GB, free: 14.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03107/0.4084, allocations: 2.065 MB / 0.568 GB, free: 12.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.39, allocations: 16.38 kB / 0.568 GB, free: 12.34 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.332295276690274]