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.001818/0.001818, 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.001507/0.001507, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.51/1.51, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.2244/0.2244, allocations: 44.92 MB / 359.6 MB, free: 6.273 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.002731/0.002731, allocations: 66.41 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3846, allocations: 65.47 MB / 0.5578 GB, free: 7.711 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003041/0.3877, allocations: 1.653 MB / 0.5594 GB, free: 6.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.3889, allocations: 0.6009 MB / 0.56 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.922e-05/0.389, allocations: 7.938 kB / 0.56 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.3891, allocations: 11.86 kB / 0.56 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.439e-05/0.3892, allocations: 11.88 kB / 0.56 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003641/0.3895, allocations: 95.75 kB / 0.5601 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.3897, allocations: 115.7 kB / 0.5602 GB, free: 5.414 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.3899, allocations: 23.97 kB / 0.5602 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.156e-05/0.39, allocations: 47.89 kB / 0.5603 GB, free: 5.344 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.306e-05/0.39, allocations: 39.78 kB / 0.5603 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.3901, allocations: 8 kB / 0.5603 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.752e-05/0.3901, allocations: 8 kB / 0.5603 GB, free: 5.289 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.545e-05/0.3901, allocations: 23.86 kB / 0.5604 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.666e-05/0.3902, allocations: 43.73 kB / 0.5604 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.3904, allocations: 91.56 kB / 0.5605 GB, free: 5.133 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3904, allocations: 4 kB / 0.5605 GB, free: 5.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3904, allocations: 0 / 0.5605 GB, free: 5.129 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.3904, allocations: 0 / 0.5605 GB, free: 5.129 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.0007266/0.3911, allocations: 346.8 kB / 0.5608 GB, free: 4.758 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.3912, allocations: 8.031 kB / 0.5608 GB, free: 4.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.39e-05/0.3912, allocations: 4.188 kB / 0.5608 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.527e-05/0.3912, allocations: 46.73 kB / 0.5609 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.133e-05/0.3913, allocations: 12.89 kB / 0.5609 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.3916, allocations: 146.3 kB / 0.561 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.3916, allocations: 4.375 kB / 0.561 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.595e-05/0.3916, allocations: 8.375 kB / 0.561 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.3919, allocations: 109.6 kB / 0.5611 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.392, allocations: 0 / 0.5611 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.392, allocations: 4 kB / 0.5612 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-06/0.392, allocations: 4 kB / 0.5612 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.3922, allocations: 47.91 kB / 0.5612 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.3929, allocations: 363.6 kB / 0.5615 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.3933, allocations: 102.5 kB / 0.5616 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.3934, allocations: 32.91 kB / 0.5617 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.3935, allocations: 4 kB / 0.5617 GB, free: 3.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.3937, allocations: 99.36 kB / 0.5618 GB, free: 3.676 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.3937, allocations: 0 / 0.5618 GB, free: 3.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004965/0.3942, allocations: 145.4 kB / 0.5619 GB, free: 3.527 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.3943, allocations: 55.41 kB / 0.562 GB, free: 3.461 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.3944, allocations: 147.5 kB / 0.5621 GB, free: 3.309 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.3945, allocations: 29.7 kB / 0.5621 GB, free: 3.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.15e-05/0.3945, allocations: 104 kB / 0.5622 GB, free: 3.168 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.3946, allocations: 23.94 kB / 0.5623 GB, free: 3.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/0.3946, allocations: 29.7 kB / 0.5623 GB, free: 3.109 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3948, allocations: 322.8 kB / 0.5626 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.3949, allocations: 31.98 kB / 0.5626 GB, free: 2.754 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.3951, allocations: 49.69 kB / 0.5627 GB, free: 2.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000239/0.3953, allocations: 81.61 kB / 0.5627 GB, free: 2.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3953, allocations: 0 / 0.5627 GB, free: 2.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003195/0.3956, allocations: 121.5 kB / 0.5629 GB, free: 2.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3956, allocations: 4 kB / 0.5629 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3956, allocations: 0 / 0.5629 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.3957, allocations: 3.984 kB / 0.5629 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3958, allocations: 20.02 kB / 0.5629 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.3958, allocations: 7.938 kB / 0.5629 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3959, allocations: 19.92 kB / 0.5629 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.3959, allocations: 4 kB / 0.5629 GB, free: 2.43 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.0001158/0.396, allocations: 124.4 kB / 0.563 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.396, allocations: 15.84 kB / 0.5631 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.113e-05/0.3961, allocations: 16.72 kB / 0.5631 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.3961, allocations: 4 kB / 0.5631 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3961, allocations: 288 / 0.5631 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3961, allocations: 0 / 0.5631 GB, free: 2.258 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005969/0.3967, allocations: 365.5 kB / 0.5634 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3967, allocations: 3.938 kB / 0.5634 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.826e-05/0.3968, allocations: 12 kB / 0.5634 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.3968, allocations: 4 kB / 0.5634 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.3968, allocations: 7.984 kB / 0.5635 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3968, allocations: 0 / 0.5635 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3968, allocations: 0 / 0.5635 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005334/0.3974, allocations: 247.4 kB / 0.5637 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.3974, allocations: 7.906 kB / 0.5637 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.3974, allocations: 11.97 kB / 0.5637 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.3975, allocations: 19.97 kB / 0.5637 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.067e-05/0.3976, allocations: 15.92 kB / 0.5637 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.3976, allocations: 8.047 kB / 0.5637 GB, free: 1.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.3977, allocations: 109.5 kB / 0.5639 GB, free: 1.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3977, allocations: 0 / 0.5639 GB, free: 1.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002405/0.398, allocations: 23.88 kB / 0.5639 GB, free: 1.375 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.0008415/0.3988, allocations: 0.7754 MB / 0.5646 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003216/0.3991, allocations: 87.95 kB / 0.5647 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3991, allocations: 0 / 0.5647 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.3993, allocations: 47.89 kB / 0.5648 GB, free: 452 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.3996, allocations: 15.98 kB / 0.5648 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.4024, allocations: 1.698 MB / 0.5664 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.4028, allocations: 0.7039 MB / 0.5671 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.61e-05/0.4028, allocations: 8.5 kB / 0.5671 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.348e-05/0.4029, allocations: 35.42 kB / 0.5672 GB, free: 13.87 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4029, allocations: 0 / 0.5672 GB, free: 13.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.4275, allocations: 2.786 MB / 0.5699 GB, free: 11.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.83, allocations: 13.25 kB / 0.5699 GB, free: 11.21 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: 14.88683705899166]