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.001683/0.001683, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002142/0.002142, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.529/1.529, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.2365/0.2365, allocations: 46.92 MB / 357.1 MB, free: 10.32 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 59.91 kB / 0.4909 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1172, allocations: 66 MB / 0.5554 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003084/0.1203, allocations: 1.64 MB / 0.557 GB, free: 4.207 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.1214, allocations: 0.5977 MB / 0.5576 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.8e-05/0.1215, allocations: 3.938 kB / 0.5576 GB, free: 3.602 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.1216, allocations: 11.86 kB / 0.5576 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.525e-05/0.1217, allocations: 19.81 kB / 0.5576 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.122, allocations: 87.8 kB / 0.5577 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.1222, allocations: 111.7 kB / 0.5578 GB, free: 3.375 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.1223, allocations: 31.95 kB / 0.5578 GB, free: 3.344 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.781e-05/0.1224, allocations: 51.84 kB / 0.5579 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.413e-05/0.1224, allocations: 43.77 kB / 0.5579 GB, free: 3.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.1225, allocations: 8 kB / 0.5579 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.667e-05/0.1225, allocations: 8 kB / 0.5579 GB, free: 3.234 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.108e-05/0.1225, allocations: 23.92 kB / 0.5579 GB, free: 3.211 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.669e-05/0.1226, allocations: 43.72 kB / 0.558 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.1227, allocations: 87.58 kB / 0.5581 GB, free: 3.082 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1227, allocations: 0 / 0.5581 GB, free: 3.082 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1227, allocations: 0 / 0.5581 GB, free: 3.082 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.1228, allocations: 0 / 0.5581 GB, free: 3.082 MB / 414.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.0007221/0.1235, allocations: 411.1 kB / 0.5585 GB, free: 2.633 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.1235, allocations: 12.03 kB / 0.5585 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.825e-05/0.1236, allocations: 38.73 kB / 0.5585 GB, free: 2.574 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.666e-05/0.1236, allocations: 12.89 kB / 0.5585 GB, free: 2.562 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.1239, allocations: 208.1 kB / 0.5587 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.1239, allocations: 8.359 kB / 0.5587 GB, free: 2.312 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.142e-05/0.124, allocations: 12.38 kB / 0.5587 GB, free: 2.301 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003079/0.1243, allocations: 101.8 kB / 0.5588 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1243, allocations: 0 / 0.5588 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.1243, allocations: 4 kB / 0.5588 GB, free: 2.191 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.1243, allocations: 4 kB / 0.5588 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1245, allocations: 47.91 kB / 0.5589 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007179/0.1252, allocations: 392.5 kB / 0.5593 GB, free: 1.707 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003717/0.1256, allocations: 102.5 kB / 0.5594 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.1257, allocations: 32.92 kB / 0.5594 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1257, allocations: 0 / 0.5594 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002794/0.126, allocations: 103.3 kB / 0.5595 GB, free: 1.449 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.126, allocations: 0 / 0.5595 GB, free: 1.449 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004978/0.1265, allocations: 149.4 kB / 0.5596 GB, free: 1.297 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.1265, allocations: 59.39 kB / 0.5597 GB, free: 1.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.1267, allocations: 143.9 kB / 0.5598 GB, free: 1.078 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.1267, allocations: 29.7 kB / 0.5598 GB, free: 1.043 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.868e-05/0.1268, allocations: 100.1 kB / 0.5599 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.1268, allocations: 19.86 kB / 0.56 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.403e-05/0.1269, allocations: 29.7 kB / 0.56 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.127, allocations: 326.8 kB / 0.5603 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.1272, allocations: 27.98 kB / 0.5603 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.1273, allocations: 53.62 kB / 0.5604 GB, free: 484 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.1276, allocations: 81.61 kB / 0.5605 GB, free: 396 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1276, allocations: 0 / 0.5605 GB, free: 396 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003233/0.1279, allocations: 121.6 kB / 0.5606 GB, free: 268 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.1279, allocations: 7.938 kB / 0.5606 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.1279, allocations: 0 / 0.5606 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.1279, allocations: 4 kB / 0.5606 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.128, allocations: 15.92 kB / 0.5606 GB, free: 240 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.128, allocations: 4 kB / 0.5606 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.1281, allocations: 20.06 kB / 0.5606 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.1281, allocations: 4 kB / 0.5606 GB, free: 212 kB / 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,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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.0001061/0.1282, allocations: 124.3 kB / 0.5607 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.1283, allocations: 19.83 kB / 0.5608 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.056e-05/0.1283, allocations: 16.72 kB / 0.5608 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1283, allocations: 0 / 0.5608 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1283, allocations: 0 / 0.5608 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1283, allocations: 0 / 0.5608 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006015/0.1289, allocations: 398.4 kB / 0.5612 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1289, allocations: 4 kB / 0.5612 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.951e-05/0.129, allocations: 8 kB / 0.5612 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.129, allocations: 4 kB / 0.5612 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.129, allocations: 288 / 0.5612 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.129, allocations: 3.984 kB / 0.5612 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.129, allocations: 0 / 0.5612 GB, free: 15.58 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005125/0.1295, allocations: 263.6 kB / 0.5614 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.388e-05/0.1296, allocations: 85.02 kB / 0.5615 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.1296, allocations: 8.031 kB / 0.5615 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.1298, allocations: 20.03 kB / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.1298, allocations: 15.98 kB / 0.5616 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.1298, allocations: 0 / 0.5616 GB, free: 15.16 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.913e-05/0.1299, allocations: 114.1 kB / 0.5617 GB, free: 15.05 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1299, allocations: 0 / 0.5617 GB, free: 15.05 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.1302, allocations: 20 kB / 0.5617 GB, free: 15.03 MB / 430.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,booleanPulse.pulseStart,change.u) * 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.0008129/0.131, allocations: 0.7749 MB / 0.5624 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003213/0.1313, allocations: 83.94 kB / 0.5625 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.1313, allocations: 8 kB / 0.5625 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.1314, allocations: 35.92 kB / 0.5626 GB, free: 14.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.1318, allocations: 15.98 kB / 0.5626 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.1344, allocations: 1.697 MB / 0.5642 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.1348, allocations: 0.704 MB / 0.5649 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.776e-05/0.1348, allocations: 12.55 kB / 0.5649 GB, free: 11.56 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.479e-05/0.1349, allocations: 27.44 kB / 0.565 GB, free: 11.53 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1349, allocations: 0 / 0.565 GB, free: 11.53 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02498/0.1598, allocations: 2.626 MB / 0.5675 GB, free: 8.984 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.414/8.574, allocations: 18.73 kB / 0.5675 GB, free: 8.969 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.560236033983529]