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.001399/0.001399, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001523/0.001523, allocations: 213.7 kB / 22.99 MB, free: 4.977 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.504/1.504, allocations: 207.7 MB / 233.8 MB, free: 9.805 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.2406/0.2406, allocations: 44.26 MB / 330.3 MB, free: 9.305 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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",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.003181/0.003181, allocations: 70.72 kB / 467.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1427/0.1459, allocations: 61.05 MB / 0.5161 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003303/0.1492, allocations: 1.597 MB / 0.5177 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001/0.1502, allocations: 0.4918 MB / 0.5182 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.256e-05/0.1503, allocations: 0 / 0.5182 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.1504, allocations: 11.86 kB / 0.5182 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.496e-05/0.1505, allocations: 23.86 kB / 0.5182 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.1506, allocations: 35.91 kB / 0.5183 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001711/0.1508, allocations: 79.77 kB / 0.5183 GB, free: 4.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.151, allocations: 32.19 kB / 0.5184 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.761e-05/0.151, allocations: 35.8 kB / 0.5184 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.737e-05/0.1511, allocations: 23.86 kB / 0.5184 GB, free: 4.824 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.1511, allocations: 4 kB / 0.5184 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.682e-05/0.1511, allocations: 8 kB / 0.5184 GB, free: 4.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.27e-05/0.1512, allocations: 19.92 kB / 0.5185 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.809e-05/0.1512, allocations: 27.86 kB / 0.5185 GB, free: 4.766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001588/0.1514, allocations: 83.58 kB / 0.5186 GB, free: 4.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.1514, allocations: 7.938 kB / 0.5186 GB, free: 4.676 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1514, allocations: 0 / 0.5186 GB, free: 4.676 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1514, allocations: 0 / 0.5186 GB, free: 4.676 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.0006485/0.152, allocations: 318.9 kB / 0.5189 GB, free: 4.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1521, allocations: 12.03 kB / 0.5189 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.7e-05/0.1521, allocations: 38.73 kB / 0.5189 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.1522, allocations: 16.83 kB / 0.5189 GB, free: 4.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.1525, allocations: 134.4 kB / 0.5191 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.1525, allocations: 8.375 kB / 0.5191 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.1525, allocations: 12.36 kB / 0.5191 GB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001777/0.1527, allocations: 85.67 kB / 0.5192 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1527, allocations: 0 / 0.5192 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.1527, allocations: 0 / 0.5192 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1527, allocations: 4 kB / 0.5192 GB, free: 3.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.859e-05/0.1528, allocations: 31.98 kB / 0.5192 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.1534, allocations: 311.6 kB / 0.5195 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.1536, allocations: 46.56 kB / 0.5195 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.204e-05/0.1536, allocations: 16.89 kB / 0.5196 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.1536, allocations: 4 kB / 0.5196 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001472/0.1538, allocations: 71.38 kB / 0.5196 GB, free: 3.449 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.1538, allocations: 0 / 0.5196 GB, free: 3.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002565/0.154, allocations: 85.56 kB / 0.5197 GB, free: 3.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.1541, allocations: 55.39 kB / 0.5198 GB, free: 3.293 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.1543, allocations: 138.7 kB / 0.5199 GB, free: 3.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.1544, allocations: 33.7 kB / 0.5199 GB, free: 3.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.1544, allocations: 100.1 kB / 0.52 GB, free: 3.008 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.393e-05/0.1545, allocations: 23.84 kB / 0.52 GB, free: 2.984 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.802e-05/0.1545, allocations: 25.72 kB / 0.5201 GB, free: 2.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.1547, allocations: 322.8 kB / 0.5204 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.492e-05/0.1547, allocations: 19.98 kB / 0.5204 GB, free: 2.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.972e-05/0.1548, allocations: 30.58 kB / 0.5204 GB, free: 2.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.109e-05/0.1549, allocations: 54.5 kB / 0.5205 GB, free: 2.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1549, allocations: 0 / 0.5205 GB, free: 2.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001595/0.1551, allocations: 89.58 kB / 0.5206 GB, free: 2.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1551, allocations: 4 kB / 0.5206 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1551, allocations: 8 kB / 0.5206 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.1551, allocations: 4.188 kB / 0.5206 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.019e-05/0.1552, allocations: 4 kB / 0.5206 GB, free: 2.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.1552, allocations: 7.938 kB / 0.5206 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.798e-05/0.1552, allocations: 12.06 kB / 0.5206 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1553, allocations: 4 kB / 0.5206 GB, free: 2.371 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.00011/0.1554, allocations: 117.8 kB / 0.5207 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/0.1554, allocations: 15.84 kB / 0.5207 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.1554, allocations: 16.64 kB / 0.5207 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1555, allocations: 11.94 kB / 0.5208 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.1555, allocations: 0 / 0.5208 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1555, allocations: 0 / 0.5208 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003847/0.1558, allocations: 301.6 kB / 0.521 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1558, allocations: 4 kB / 0.521 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.004e-05/0.1559, allocations: 11.98 kB / 0.5211 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1559, allocations: 0 / 0.5211 GB, free: 1.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.1559, allocations: 7.938 kB / 0.5211 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1559, allocations: 0 / 0.5211 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1559, allocations: 0 / 0.5211 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.1562, allocations: 195.4 kB / 0.5213 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.976e-05/0.1562, allocations: 12.05 kB / 0.5213 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.1562, allocations: 0 / 0.5213 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.275e-05/0.1563, allocations: 7.984 kB / 0.5213 GB, free: 1.605 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.1564, allocations: 11.98 kB / 0.5213 GB, free: 1.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.1564, allocations: 0 / 0.5213 GB, free: 1.594 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.1565, allocations: 105.1 kB / 0.5214 GB, free: 1.492 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1565, allocations: 0 / 0.5214 GB, free: 1.492 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000257/0.1568, allocations: 19.94 kB / 0.5214 GB, free: 1.473 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.0006807/0.1575, allocations: 0.7284 MB / 0.5221 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.1576, allocations: 56.11 kB / 0.5222 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1576, allocations: 0 / 0.5222 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.947e-05/0.1577, allocations: 19.98 kB / 0.5222 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.158, allocations: 18.8 kB / 0.5222 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001917/0.16, allocations: 1.532 MB / 0.5237 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.541e-05/0.1601, allocations: 79.58 kB / 0.5238 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.039e-05/0.1601, allocations: 12.42 kB / 0.5238 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.1602, allocations: 27.48 kB / 0.5238 GB, free: 14.87 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1602, allocations: 3.938 kB / 0.5238 GB, free: 14.86 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0355/0.1957, allocations: 2.832 MB / 0.5266 GB, free: 12.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.49, allocations: 11.47 kB / 0.5266 GB, free: 12.02 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: 14.7363600009121]