Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001535/0.001535, allocations: 104.3 kB / 19.69 MB, free: 1.945 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.001818/0.001818, allocations: 223.5 kB / 23 MB, free: 4.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.548/1.548, allocations: 207.7 MB / 233.8 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.252/0.252, allocations: 44.27 MB / 330.4 MB, free: 9.383 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002321/0.002321, allocations: 73.77 kB / 467.5 MB, free: 4.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.137, allocations: 61.05 MB / 0.5161 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003065/0.1401, allocations: 1.604 MB / 0.5177 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.1413, allocations: 0.5814 MB / 0.5183 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.1414, allocations: 0 / 0.5183 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00016/0.1416, allocations: 11.86 kB / 0.5183 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.879e-05/0.1416, allocations: 19.81 kB / 0.5183 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.142, allocations: 91.8 kB / 0.5184 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.1423, allocations: 123.7 kB / 0.5185 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.1424, allocations: 23.95 kB / 0.5185 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1425, allocations: 47.84 kB / 0.5186 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.592e-05/0.1426, allocations: 31.78 kB / 0.5186 GB, free: 4.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.1426, allocations: 8 kB / 0.5186 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.902e-05/0.1426, allocations: 12 kB / 0.5186 GB, free: 4.625 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.519e-05/0.1426, allocations: 23.86 kB / 0.5187 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.486e-05/0.1427, allocations: 31.84 kB / 0.5187 GB, free: 4.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001958/0.1429, allocations: 91.58 kB / 0.5188 GB, free: 4.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1429, allocations: 0 / 0.5188 GB, free: 4.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1429, allocations: 4 kB / 0.5188 GB, free: 4.477 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1429, allocations: 0 / 0.5188 GB, free: 4.477 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.0007512/0.1437, allocations: 346.8 kB / 0.5191 GB, free: 4.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1437, allocations: 12.03 kB / 0.5191 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.212e-05/0.1438, allocations: 34.75 kB / 0.5192 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.1438, allocations: 12.89 kB / 0.5192 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003497/0.1441, allocations: 154.3 kB / 0.5193 GB, free: 3.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.1442, allocations: 8.375 kB / 0.5193 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.1442, allocations: 8.359 kB / 0.5193 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.1445, allocations: 105.7 kB / 0.5194 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1445, allocations: 0 / 0.5194 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.1445, allocations: 4 kB / 0.5194 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.1445, allocations: 4 kB / 0.5194 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.1447, allocations: 47.97 kB / 0.5195 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006937/0.1454, allocations: 339.6 kB / 0.5198 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003447/0.1457, allocations: 102.5 kB / 0.5199 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.1458, allocations: 36.91 kB / 0.5199 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.1458, allocations: 4 kB / 0.5199 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.1461, allocations: 95.36 kB / 0.52 GB, free: 3.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.352e-06/0.1461, allocations: 0 / 0.52 GB, free: 3.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004842/0.1466, allocations: 149.4 kB / 0.5202 GB, free: 2.898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.115e-05/0.1467, allocations: 55.41 kB / 0.5202 GB, free: 2.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.1468, allocations: 153.7 kB / 0.5204 GB, free: 2.672 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.1469, allocations: 33.7 kB / 0.5204 GB, free: 2.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.341e-05/0.1469, allocations: 100.1 kB / 0.5205 GB, free: 2.531 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.147, allocations: 15.84 kB / 0.5205 GB, free: 2.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.147, allocations: 25.72 kB / 0.5205 GB, free: 2.484 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1472, allocations: 322.8 kB / 0.5208 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.1473, allocations: 35.97 kB / 0.5209 GB, free: 2.125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.1474, allocations: 53.69 kB / 0.5209 GB, free: 2.066 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.1477, allocations: 73.62 kB / 0.521 GB, free: 1.988 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1477, allocations: 3.938 kB / 0.521 GB, free: 1.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000298/0.148, allocations: 121.5 kB / 0.5211 GB, free: 1.859 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.148, allocations: 13.81 kB / 0.5211 GB, free: 1.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.148, allocations: 3.984 kB / 0.5211 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.148, allocations: 0 / 0.5211 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1481, allocations: 12 kB / 0.5212 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1481, allocations: 0 / 0.5212 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.1482, allocations: 31.94 kB / 0.5212 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.1482, allocations: 4.031 kB / 0.5212 GB, free: 1.797 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.0001152/0.1483, allocations: 121.8 kB / 0.5213 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.1484, allocations: 11.89 kB / 0.5213 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.99e-05/0.1484, allocations: 13 kB / 0.5213 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1484, allocations: 4 kB / 0.5213 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1484, allocations: 0 / 0.5213 GB, free: 1.637 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1484, allocations: 3.938 kB / 0.5213 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005617/0.149, allocations: 361.5 kB / 0.5217 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.149, allocations: 0 / 0.5217 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.384e-05/0.149, allocations: 8 kB / 0.5217 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1491, allocations: 0 / 0.5217 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.1491, allocations: 7.984 kB / 0.5217 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1491, allocations: 0 / 0.5217 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1491, allocations: 0 / 0.5217 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000499/0.1496, allocations: 255.3 kB / 0.5219 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.323e-05/0.1496, allocations: 11.97 kB / 0.5219 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.1496, allocations: 0 / 0.5219 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.1498, allocations: 23.97 kB / 0.522 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.1498, allocations: 11.92 kB / 0.522 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.1498, allocations: 8.047 kB / 0.522 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.546e-05/0.1499, allocations: 112 kB / 0.5221 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1499, allocations: 0 / 0.5221 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.1501, allocations: 16 kB / 0.5221 GB, free: 0.7695 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.0008393/0.151, allocations: 0.7787 MB / 0.5229 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.1513, allocations: 83.83 kB / 0.523 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1513, allocations: 0 / 0.523 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.1514, allocations: 48.03 kB / 0.523 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.1518, allocations: 19.97 kB / 0.523 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.1541, allocations: 1.655 MB / 0.5246 GB, free: 14.08 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.487e-05/0.1542, allocations: 89.25 kB / 0.5247 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.002e-05/0.1542, allocations: 8.5 kB / 0.5247 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.446e-05/0.1543, allocations: 31.42 kB / 0.5248 GB, free: 13.93 MB / 414.1 MB Notification: Performance of SimCode: time 1.253e-06/0.1543, allocations: 192 / 0.5248 GB, free: 13.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03257/0.1869, allocations: 3.271 MB / 0.528 GB, free: 10.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.51, allocations: 0 / 0.528 GB, free: 10.65 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.842869427986443]