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.001478/0.001478, allocations: 97.91 kB / 20.48 MB, free: 1.367 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.001871/0.001871, allocations: 212.1 kB / 23.78 MB, free: 4.523 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.489/1.489, allocations: 207.7 MB / 234.6 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.2266/0.2266, allocations: 44.27 MB / 331.1 MB, free: 9.398 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",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.003149/0.003149, allocations: 66.72 kB / 468.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.151, allocations: 61.05 MB / 0.5169 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00318/0.1541, allocations: 1.606 MB / 0.5185 GB, free: 5.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.1554, allocations: 0.5708 MB / 0.519 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.963e-05/0.1555, allocations: 0 / 0.519 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.1556, allocations: 19.73 kB / 0.5191 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.205e-05/0.1557, allocations: 19.86 kB / 0.5191 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004037/0.1561, allocations: 87.83 kB / 0.5192 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.1563, allocations: 123.7 kB / 0.5193 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1564, allocations: 23.97 kB / 0.5193 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.91e-05/0.1565, allocations: 55.78 kB / 0.5194 GB, free: 4.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.09e-05/0.1566, allocations: 47.77 kB / 0.5194 GB, free: 4.625 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.1566, allocations: 8 kB / 0.5194 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.776e-05/0.1566, allocations: 8 kB / 0.5194 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.111e-05/0.1566, allocations: 15.92 kB / 0.5194 GB, free: 4.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.301e-05/0.1567, allocations: 35.86 kB / 0.5195 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.1569, allocations: 83.64 kB / 0.5195 GB, free: 4.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1569, allocations: 3.938 kB / 0.5195 GB, free: 4.473 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1569, allocations: 0 / 0.5195 GB, free: 4.473 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1569, allocations: 0 / 0.5195 GB, free: 4.473 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.0006556/0.1575, allocations: 350.8 kB / 0.5199 GB, free: 4.098 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1576, allocations: 12.03 kB / 0.5199 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.504e-05/0.1576, allocations: 4.188 kB / 0.5199 GB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.447e-05/0.1576, allocations: 42.69 kB / 0.5199 GB, free: 4.031 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.344e-05/0.1577, allocations: 8.891 kB / 0.5199 GB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.1579, allocations: 142.4 kB / 0.5201 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.1579, allocations: 8.375 kB / 0.5201 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.158, allocations: 12.36 kB / 0.5201 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.1583, allocations: 105.5 kB / 0.5202 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1583, allocations: 0 / 0.5202 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.1583, allocations: 4 kB / 0.5202 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1583, allocations: 3.938 kB / 0.5202 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1585, allocations: 51.97 kB / 0.5203 GB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007001/0.1592, allocations: 343.6 kB / 0.5206 GB, free: 3.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.1595, allocations: 98.52 kB / 0.5207 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.1596, allocations: 36.91 kB / 0.5207 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.1597, allocations: 0 / 0.5207 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/0.1599, allocations: 95.36 kB / 0.5208 GB, free: 3.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.1599, allocations: 4 kB / 0.5208 GB, free: 3.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004789/0.1604, allocations: 141.5 kB / 0.5209 GB, free: 2.895 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.1605, allocations: 59.41 kB / 0.521 GB, free: 2.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.1606, allocations: 149.8 kB / 0.5211 GB, free: 2.668 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.1607, allocations: 25.7 kB / 0.5212 GB, free: 2.637 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.474e-05/0.1607, allocations: 104.1 kB / 0.5213 GB, free: 2.531 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.1608, allocations: 19.84 kB / 0.5213 GB, free: 2.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.271e-05/0.1608, allocations: 25.72 kB / 0.5213 GB, free: 2.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.161, allocations: 322.8 kB / 0.5216 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.1611, allocations: 39.91 kB / 0.5217 GB, free: 2.117 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.1612, allocations: 53.62 kB / 0.5217 GB, free: 2.059 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.1615, allocations: 73.69 kB / 0.5218 GB, free: 1.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1615, allocations: 3.938 kB / 0.5218 GB, free: 1.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003082/0.1618, allocations: 125.5 kB / 0.5219 GB, free: 1.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.1618, allocations: 5.875 kB / 0.5219 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.1618, allocations: 7.984 kB / 0.5219 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.1618, allocations: 3.984 kB / 0.5219 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.1619, allocations: 15.94 kB / 0.5219 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.1619, allocations: 0 / 0.5219 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.631e-05/0.162, allocations: 24 kB / 0.522 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-06/0.162, allocations: 4 kB / 0.522 GB, free: 1.789 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.0001156/0.1622, allocations: 121.8 kB / 0.5221 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.649e-05/0.1622, allocations: 15.89 kB / 0.5221 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.1622, allocations: 8.719 kB / 0.5221 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1622, allocations: 4 kB / 0.5221 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1622, allocations: 4 kB / 0.5221 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1622, allocations: 0 / 0.5221 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005639/0.1628, allocations: 361.5 kB / 0.5225 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1628, allocations: 0 / 0.5225 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.684e-05/0.1629, allocations: 8.281 kB / 0.5225 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1629, allocations: 0 / 0.5225 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1629, allocations: 3.984 kB / 0.5225 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.1629, allocations: 7.938 kB / 0.5225 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1629, allocations: 0 / 0.5225 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.1634, allocations: 259.7 kB / 0.5227 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.848e-05/0.1634, allocations: 3.953 kB / 0.5227 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.1634, allocations: 8 kB / 0.5227 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.1636, allocations: 15.97 kB / 0.5227 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/0.1636, allocations: 11.98 kB / 0.5228 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.1636, allocations: 7.984 kB / 0.5228 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.581e-05/0.1637, allocations: 112.1 kB / 0.5229 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1637, allocations: 0 / 0.5229 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000239/0.164, allocations: 19.94 kB / 0.5229 GB, free: 0.7578 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.0007836/0.1648, allocations: 0.7827 MB / 0.5237 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.165, allocations: 75.89 kB / 0.5237 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.165, allocations: 4 kB / 0.5237 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.1652, allocations: 43.91 kB / 0.5238 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.1655, allocations: 20.05 kB / 0.5238 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002194/0.1677, allocations: 1.659 MB / 0.5254 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.326e-05/0.1678, allocations: 85.31 kB / 0.5255 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.111e-05/0.1678, allocations: 8.5 kB / 0.5255 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.781e-05/0.1679, allocations: 35.42 kB / 0.5255 GB, free: 13.92 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1679, allocations: 0 / 0.5255 GB, free: 13.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.1923, allocations: 2.899 MB / 0.5284 GB, free: 11.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12, allocations: 27.31 kB / 0.5284 GB, free: 11 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: 15.377391897025518]