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.001305/0.001305, allocations: 114.2 kB / 19.69 MB, free: 2.188 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.00159/0.00159, allocations: 216 kB / 23 MB, free: 5.004 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.447/1.447, allocations: 207.6 MB / 233.8 MB, free: 10.01 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.2319/0.2319, allocations: 44.25 MB / 330.3 MB, free: 9.516 MB / 270.1 MB " [Timeout remaining time 180] 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.002151/0.002151, allocations: 71.89 kB / 467.5 MB, free: 4.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.111, allocations: 61.04 MB / 0.5161 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003068/0.114, allocations: 1.655 MB / 0.5178 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.1151, allocations: 0.6125 MB / 0.5184 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1152, allocations: 0 / 0.5184 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1154, allocations: 11.88 kB / 0.5184 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.925e-05/0.1154, allocations: 19.86 kB / 0.5184 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003902/0.1158, allocations: 91.77 kB / 0.5185 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001953/0.116, allocations: 115.7 kB / 0.5186 GB, free: 4.824 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.1161, allocations: 23.97 kB / 0.5186 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.712e-05/0.1162, allocations: 51.83 kB / 0.5187 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.862e-05/0.1163, allocations: 39.83 kB / 0.5187 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.1163, allocations: 8 kB / 0.5187 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.645e-05/0.1164, allocations: 8 kB / 0.5187 GB, free: 4.695 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.039e-05/0.1164, allocations: 15.94 kB / 0.5187 GB, free: 4.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.847e-05/0.1164, allocations: 43.73 kB / 0.5188 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.1166, allocations: 103.5 kB / 0.5189 GB, free: 4.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1166, allocations: 0 / 0.5189 GB, free: 4.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1166, allocations: 0 / 0.5189 GB, free: 4.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.1166, allocations: 0 / 0.5189 GB, free: 4.535 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.0006752/0.1173, allocations: 342.8 kB / 0.5192 GB, free: 4.168 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1173, allocations: 8.031 kB / 0.5192 GB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.416e-05/0.1174, allocations: 42.73 kB / 0.5192 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.1174, allocations: 16.88 kB / 0.5193 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.1177, allocations: 146.3 kB / 0.5194 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.1177, allocations: 4.375 kB / 0.5194 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.1178, allocations: 8.375 kB / 0.5194 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.118, allocations: 105.7 kB / 0.5195 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.1181, allocations: 8 kB / 0.5195 GB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1181, allocations: 0 / 0.5195 GB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1181, allocations: 0 / 0.5195 GB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.1182, allocations: 55.95 kB / 0.5196 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007003/0.1189, allocations: 355.6 kB / 0.5199 GB, free: 3.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003458/0.1193, allocations: 94.52 kB / 0.52 GB, free: 3.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.1194, allocations: 44.86 kB / 0.52 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.1194, allocations: 3.938 kB / 0.52 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002459/0.1197, allocations: 95.34 kB / 0.5201 GB, free: 3.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.1197, allocations: 4 kB / 0.5201 GB, free: 3.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004587/0.1201, allocations: 141.5 kB / 0.5203 GB, free: 2.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.1202, allocations: 59.34 kB / 0.5203 GB, free: 2.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.1203, allocations: 149.8 kB / 0.5205 GB, free: 2.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.1203, allocations: 37.64 kB / 0.5205 GB, free: 2.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.385e-05/0.1204, allocations: 100.1 kB / 0.5206 GB, free: 2.574 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.1204, allocations: 11.86 kB / 0.5206 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.044e-05/0.1205, allocations: 29.7 kB / 0.5206 GB, free: 2.527 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1206, allocations: 322.8 kB / 0.5209 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.1208, allocations: 31.98 kB / 0.521 GB, free: 2.172 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.1209, allocations: 53.69 kB / 0.521 GB, free: 2.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.1211, allocations: 77.61 kB / 0.5211 GB, free: 2.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1211, allocations: 4 kB / 0.5211 GB, free: 2.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002898/0.1214, allocations: 117.5 kB / 0.5212 GB, free: 1.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.1214, allocations: 7.938 kB / 0.5212 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1214, allocations: 4.312 kB / 0.5212 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1214, allocations: 0 / 0.5212 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.1215, allocations: 20.02 kB / 0.5213 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1216, allocations: 288 / 0.5213 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.406e-05/0.1216, allocations: 20.02 kB / 0.5213 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.1217, allocations: 11.98 kB / 0.5213 GB, free: 1.844 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 9.955e-05/0.1218, allocations: 125.7 kB / 0.5214 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.1218, allocations: 11.89 kB / 0.5214 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.955e-05/0.1218, allocations: 16.7 kB / 0.5214 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1218, allocations: 4 kB / 0.5214 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1218, allocations: 0 / 0.5214 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1218, allocations: 4 kB / 0.5214 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005274/0.1224, allocations: 357.5 kB / 0.5218 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1224, allocations: 0 / 0.5218 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.786e-05/0.1224, allocations: 19.92 kB / 0.5218 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1224, allocations: 0 / 0.5218 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.1225, allocations: 4 kB / 0.5218 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1225, allocations: 0 / 0.5218 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1225, allocations: 4 kB / 0.5218 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004584/0.1229, allocations: 251.3 kB / 0.522 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.952e-05/0.1229, allocations: 7.984 kB / 0.5221 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.123, allocations: 3.938 kB / 0.5221 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.1231, allocations: 23.95 kB / 0.5221 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/0.1232, allocations: 11.98 kB / 0.5221 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.1232, allocations: 4 kB / 0.5221 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.714e-05/0.1232, allocations: 116.1 kB / 0.5222 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1232, allocations: 4 kB / 0.5222 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.1235, allocations: 12 kB / 0.5222 GB, free: 0.8047 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.0007545/0.1242, allocations: 0.7826 MB / 0.523 GB, free: 16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003086/0.1245, allocations: 79.89 kB / 0.5231 GB, free: 15.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1245, allocations: 4.125 kB / 0.5231 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.1247, allocations: 39.97 kB / 0.5231 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.125, allocations: 13.09 kB / 0.5231 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.1271, allocations: 1.67 MB / 0.5247 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1274, allocations: 0.7001 MB / 0.5254 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.734e-05/0.1275, allocations: 12.48 kB / 0.5254 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.051e-05/0.1275, allocations: 27.42 kB / 0.5255 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1275, allocations: 0 / 0.5255 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03004/0.1576, allocations: 2.801 MB / 0.5282 GB, free: 10.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.21, allocations: 15.8 kB / 0.5282 GB, free: 10.52 MB / 414.1 MB " [Timeout remaining time 649] (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.263503923080862]