Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.001256/0.001256, allocations: 109 kB / 20.48 MB, free: 1.477 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.001439/0.001439, allocations: 211.9 kB / 23.79 MB, free: 4.688 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.556/1.556, allocations: 207.6 MB / 234.6 MB, free: 9.98 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.2242/0.2242, allocations: 44.24 MB / 331.1 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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",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.002601/0.002601, allocations: 63.91 kB / 468.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1382, allocations: 61.05 MB / 0.5169 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003338/0.1416, allocations: 1.637 MB / 0.5185 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1426, allocations: 0.528 MB / 0.519 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.053e-05/0.1427, allocations: 7.938 kB / 0.519 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1428, allocations: 7.875 kB / 0.519 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.789e-05/0.1429, allocations: 15.86 kB / 0.519 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.1431, allocations: 43.91 kB / 0.5191 GB, free: 5.078 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.1433, allocations: 79.77 kB / 0.5192 GB, free: 5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1434, allocations: 32.19 kB / 0.5192 GB, free: 4.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.546e-05/0.1435, allocations: 23.94 kB / 0.5192 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.384e-05/0.1436, allocations: 31.78 kB / 0.5192 GB, free: 4.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.1436, allocations: 8 kB / 0.5193 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.572e-05/0.1436, allocations: 8 kB / 0.5193 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.1436, allocations: 19.86 kB / 0.5193 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.982e-05/0.1437, allocations: 39.78 kB / 0.5193 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.1438, allocations: 71.66 kB / 0.5194 GB, free: 4.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1438, allocations: 4 kB / 0.5194 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1438, allocations: 0 / 0.5194 GB, free: 4.766 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.1439, allocations: 0 / 0.5194 GB, free: 4.766 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006198/0.1445, allocations: 322.9 kB / 0.5197 GB, free: 4.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1445, allocations: 12.03 kB / 0.5197 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.417e-05/0.1445, allocations: 4.188 kB / 0.5197 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.535e-05/0.1446, allocations: 42.69 kB / 0.5198 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.1446, allocations: 16.83 kB / 0.5198 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.1448, allocations: 142.4 kB / 0.5199 GB, free: 4.172 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1448, allocations: 4.375 kB / 0.5199 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.592e-05/0.1449, allocations: 8.375 kB / 0.5199 GB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.145, allocations: 77.61 kB / 0.52 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.145, allocations: 3.984 kB / 0.52 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.145, allocations: 0 / 0.52 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.145, allocations: 0 / 0.52 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.596e-05/0.1451, allocations: 39.92 kB / 0.52 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/0.1457, allocations: 323.7 kB / 0.5203 GB, free: 3.676 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.1458, allocations: 46.5 kB / 0.5204 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.396e-05/0.1459, allocations: 16.89 kB / 0.5204 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.1459, allocations: 0 / 0.5204 GB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001494/0.146, allocations: 71.44 kB / 0.5205 GB, free: 3.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.146, allocations: 0 / 0.5205 GB, free: 3.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002279/0.1463, allocations: 97.5 kB / 0.5206 GB, free: 3.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.1463, allocations: 55.39 kB / 0.5206 GB, free: 3.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.1464, allocations: 138.9 kB / 0.5208 GB, free: 3.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1465, allocations: 29.7 kB / 0.5208 GB, free: 3.172 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.581e-05/0.1465, allocations: 96.12 kB / 0.5209 GB, free: 3.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.267e-05/0.1466, allocations: 16 kB / 0.5209 GB, free: 3.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-05/0.1466, allocations: 33.64 kB / 0.5209 GB, free: 3.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1468, allocations: 322.8 kB / 0.5212 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.937e-05/0.1468, allocations: 16 kB / 0.5212 GB, free: 2.68 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.713e-05/0.1469, allocations: 38.56 kB / 0.5213 GB, free: 2.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.573e-05/0.1469, allocations: 50.81 kB / 0.5213 GB, free: 2.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1469, allocations: 0 / 0.5213 GB, free: 2.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001441/0.1471, allocations: 93.58 kB / 0.5214 GB, free: 2.477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.1471, allocations: 7.938 kB / 0.5214 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.1471, allocations: 0 / 0.5214 GB, free: 2.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1471, allocations: 4 kB / 0.5214 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.418e-05/0.1472, allocations: 11.92 kB / 0.5214 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.341e-06/0.1472, allocations: 0 / 0.5214 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.533e-05/0.1473, allocations: 11.94 kB / 0.5215 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-06/0.1473, allocations: 0 / 0.5215 GB, free: 2.441 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_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.0001253/0.1474, allocations: 130.1 kB / 0.5216 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.1474, allocations: 19.83 kB / 0.5216 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.223e-05/0.1474, allocations: 12.66 kB / 0.5216 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1474, allocations: 0 / 0.5216 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.1475, allocations: 0 / 0.5216 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1475, allocations: 4 kB / 0.5216 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003647/0.1478, allocations: 317.5 kB / 0.5219 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1478, allocations: 0 / 0.5219 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.037e-05/0.1479, allocations: 8 kB / 0.5219 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1479, allocations: 4 kB / 0.5219 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.1479, allocations: 4 kB / 0.5219 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1479, allocations: 3.984 kB / 0.5219 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1479, allocations: 0 / 0.5219 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002902/0.1482, allocations: 195.4 kB / 0.5221 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.664e-05/0.1482, allocations: 7.938 kB / 0.5221 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.1482, allocations: 4 kB / 0.5221 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.943e-05/0.1483, allocations: 4 kB / 0.5221 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.852e-05/0.1484, allocations: 12.05 kB / 0.5221 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.1484, allocations: 7.984 kB / 0.5222 GB, free: 1.645 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.615e-05/0.1484, allocations: 109.1 kB / 0.5223 GB, free: 1.539 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1484, allocations: 0 / 0.5223 GB, free: 1.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002351/0.1487, allocations: 19.94 kB / 0.5223 GB, free: 1.52 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,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_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.0005657/0.1492, allocations: 0.7241 MB / 0.523 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.1494, allocations: 43.97 kB / 0.523 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1494, allocations: 0 / 0.523 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.103e-05/0.1494, allocations: 23.92 kB / 0.523 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003308/0.1498, allocations: 23.36 kB / 0.5231 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.1514, allocations: 1.529 MB / 0.5246 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004041/0.1518, allocations: 0.6963 MB / 0.5252 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.618e-05/0.1519, allocations: 8.438 kB / 0.5253 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.551e-05/0.152, allocations: 27.42 kB / 0.5253 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.152, allocations: 0 / 0.5253 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.175, allocations: 2.419 MB / 0.5276 GB, free: 11.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.55, allocations: 7.984 kB / 0.5276 GB, free: 11.88 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.008976427023299]