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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 105.2 kB / 16.27 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001133, allocations: 191.6 kB / 17.19 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2416/0.2416, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002201/0.002202, allocations: 73.11 kB / 382.7 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1259, allocations: 57.79 MB / 440.5 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003139/0.1291, allocations: 1.602 MB / 442.1 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007756/0.1299, allocations: 0.5191 MB / 442.6 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.13, allocations: 0 / 442.6 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.1302, allocations: 19.86 kB / 442.7 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.655e-05/0.1302, allocations: 11.86 kB / 442.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001942/0.1304, allocations: 35.91 kB / 442.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.1306, allocations: 83.7 kB / 442.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.1307, allocations: 32.44 kB / 442.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.834e-05/0.1308, allocations: 23.92 kB / 442.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.974e-05/0.1308, allocations: 35.78 kB / 442.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.1309, allocations: 8 kB / 442.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.693e-05/0.1309, allocations: 8 kB / 442.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.973e-05/0.1309, allocations: 15.98 kB / 442.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.794e-05/0.131, allocations: 35.73 kB / 442.9 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.1311, allocations: 67.78 kB / 443 MB, free: 4.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1311, allocations: 4 kB / 443 MB, free: 4.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1311, allocations: 0 / 443 MB, free: 4.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1311, allocations: 3.938 kB / 443 MB, free: 4.418 MB / 318.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.000537/0.1317, allocations: 395.1 kB / 443.4 MB, free: 3.984 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1317, allocations: 15.89 kB / 443.4 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.1318, allocations: 12.84 kB / 443.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001819/0.132, allocations: 188.2 kB / 443.6 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.132, allocations: 4.375 kB / 443.6 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.284e-05/0.132, allocations: 12.36 kB / 443.6 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.1322, allocations: 85.86 kB / 443.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1322, allocations: 3.938 kB / 443.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.1322, allocations: 0 / 443.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1322, allocations: 4 kB / 443.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.152e-05/0.1323, allocations: 31.98 kB / 443.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004834/0.1328, allocations: 356.4 kB / 444.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.723e-05/0.1329, allocations: 50.56 kB / 444.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.88e-05/0.1329, allocations: 12.89 kB / 444.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.1329, allocations: 4 kB / 444.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/0.1331, allocations: 71.38 kB / 444.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.1331, allocations: 0 / 444.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002181/0.1333, allocations: 93.5 kB / 444.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.1334, allocations: 51.41 kB / 444.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.888e-05/0.1335, allocations: 138.5 kB / 444.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.1335, allocations: 29.7 kB / 444.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.998e-05/0.1335, allocations: 100 kB / 444.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.927e-05/0.1335, allocations: 19.81 kB / 444.7 MB, free: 2.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.1336, allocations: 25.7 kB / 444.7 MB, free: 2.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.858e-05/0.1337, allocations: 318.8 kB / 445 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.512e-05/0.1337, allocations: 19.98 kB / 445 MB, free: 2.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.793e-05/0.1337, allocations: 38.5 kB / 445 MB, free: 2.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.092e-05/0.1338, allocations: 50.58 kB / 445.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1338, allocations: 0 / 445.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001104/0.1339, allocations: 97.5 kB / 445.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.134, allocations: 4 kB / 445.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.134, allocations: 0 / 445.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.134, allocations: 7.938 kB / 445.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.226e-05/0.1341, allocations: 7.938 kB / 445.2 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1341, allocations: 7.984 kB / 445.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.025e-05/0.1341, allocations: 16.33 kB / 445.2 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.1341, allocations: 0 / 445.2 MB, free: 1.949 MB / 318.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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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 7.175e-05/0.1342, allocations: 126.9 kB / 445.4 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.1342, allocations: 7.906 kB / 445.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.1343, allocations: 16.64 kB / 445.4 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1343, allocations: 4 kB / 445.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1343, allocations: 3.938 kB / 445.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1343, allocations: 0 / 445.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002506/0.1346, allocations: 350.4 kB / 445.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1346, allocations: 0 / 445.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.477e-05/0.1346, allocations: 4 kB / 445.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1346, allocations: 4 kB / 445.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.1346, allocations: 0 / 445.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1347, allocations: 480 / 445.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1347, allocations: 0 / 445.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.1348, allocations: 203.3 kB / 445.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.871e-05/0.1349, allocations: 85.06 kB / 446 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.1349, allocations: 8.031 kB / 446 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.182e-05/0.135, allocations: 4 kB / 446 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.135, allocations: 7.984 kB / 446 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.912e-06/0.1351, allocations: 4 kB / 446 MB, free: 1.035 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.934e-05/0.1351, allocations: 110.1 kB / 446.2 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1351, allocations: 0 / 446.2 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002196/0.1353, allocations: 16 kB / 446.2 MB, free: 0.9141 MB / 318.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,booleanPulse.pulseStart,fallingEdge.not_u) * 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 9.084e-05/0.1354, allocations: 91.25 kB / 446.3 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001329/0.1356, allocations: 51.92 kB / 446.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1356, allocations: 0 / 446.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.609e-05/0.1356, allocations: 27.92 kB / 446.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.136, allocations: 19.94 kB / 446.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004901/0.1364, allocations: 219.5 kB / 446.6 MB, free: 492 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.1367, allocations: 0.7 MB / 447.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.595e-05/0.1368, allocations: 16.42 kB / 447.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.854e-05/0.1368, allocations: 11.44 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1368, allocations: 4 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of Templates: time 0.003739/0.1406, allocations: 0.9391 MB / 448.2 MB, free: 14.79 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches