Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 109.3 kB / 18.39 MB, free: 4.762 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.001643/0.001643, allocations: 184.1 kB / 19.32 MB, free: 3.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 222.9 MB / 243 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2203/0.2203, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 64.69 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1305, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002998/0.1335, allocations: 1.617 MB / 472.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000861/0.1344, allocations: 486.8 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.221e-05/0.1345, allocations: 0 / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.1346, allocations: 7.875 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.785e-05/0.1347, allocations: 19.86 kB / 472.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001945/0.1349, allocations: 35.91 kB / 472.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.1351, allocations: 83.69 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.1352, allocations: 20.23 kB / 472.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.727e-05/0.1353, allocations: 31.86 kB / 473 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.487e-05/0.1353, allocations: 31.84 kB / 473 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.1354, allocations: 4 kB / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.573e-05/0.1354, allocations: 12 kB / 473 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.769e-05/0.1354, allocations: 19.92 kB / 473 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.205e-05/0.1355, allocations: 39.78 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001367/0.1356, allocations: 75.61 kB / 473.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1356, allocations: 0 / 473.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1357, allocations: 0 / 473.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1357, allocations: 0 / 473.2 MB, free: 11.18 MB / 350.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.0006632/0.1363, allocations: 395.2 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1364, allocations: 12.03 kB / 473.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.347e-05/0.1364, allocations: 12.84 kB / 473.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.1367, allocations: 200.1 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.1367, allocations: 4.375 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.1368, allocations: 8.375 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.1369, allocations: 73.98 kB / 473.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.137, allocations: 0 / 473.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.137, allocations: 4 kB / 473.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.137, allocations: 7.938 kB / 473.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.918e-05/0.1371, allocations: 35.92 kB / 473.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005824/0.1377, allocations: 352.5 kB / 474.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.1378, allocations: 54.47 kB / 474.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.954e-05/0.1379, allocations: 12.86 kB / 474.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.1379, allocations: 0 / 474.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000126/0.138, allocations: 75.42 kB / 474.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.138, allocations: 0 / 474.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002259/0.1383, allocations: 93.52 kB / 474.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.1383, allocations: 55.34 kB / 474.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.1384, allocations: 140.2 kB / 474.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.1384, allocations: 29.7 kB / 474.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.409e-05/0.1385, allocations: 104.1 kB / 474.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.1385, allocations: 19.8 kB / 474.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/0.1386, allocations: 29.7 kB / 474.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1387, allocations: 322.8 kB / 475.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.92e-05/0.1388, allocations: 12 kB / 475.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.804e-05/0.1388, allocations: 38.56 kB / 475.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.385e-05/0.1389, allocations: 50.52 kB / 475.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1389, allocations: 4 kB / 475.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001333/0.1391, allocations: 89.53 kB / 475.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1391, allocations: 4 kB / 475.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1391, allocations: 0 / 475.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.1391, allocations: 7.938 kB / 475.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.236e-05/0.1392, allocations: 7.984 kB / 475.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.1392, allocations: 4 kB / 475.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.236e-05/0.1393, allocations: 7.906 kB / 475.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.1393, allocations: 4.062 kB / 475.4 MB, free: 8.715 MB / 350.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 0.0001052/0.1394, allocations: 133.7 kB / 475.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.628e-05/0.1394, allocations: 7.906 kB / 475.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.1395, allocations: 12.66 kB / 475.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1395, allocations: 0 / 475.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1395, allocations: 4 kB / 475.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-06/0.1395, allocations: 0 / 475.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003513/0.1398, allocations: 342.5 kB / 475.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1399, allocations: 7.938 kB / 475.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.769e-05/0.1399, allocations: 4.188 kB / 475.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.1399, allocations: 0 / 475.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.1399, allocations: 15.86 kB / 475.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.14, allocations: 0 / 475.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.14, allocations: 0 / 475.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002169/0.1402, allocations: 187.9 kB / 476.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.131e-05/0.1402, allocations: 89 kB / 476.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.1403, allocations: 4.062 kB / 476.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.96e-05/0.1404, allocations: 11.98 kB / 476.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/0.1404, allocations: 4 kB / 476.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.1404, allocations: 4 kB / 476.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.304e-05/0.1405, allocations: 111.2 kB / 476.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1405, allocations: 0 / 476.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002318/0.1408, allocations: 19.91 kB / 476.3 MB, free: 7.676 MB / 350.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 0.0001074/0.1409, allocations: 91.25 kB / 476.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001509/0.141, allocations: 59.97 kB / 476.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.141, allocations: 0 / 476.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.19e-05/0.1411, allocations: 23.98 kB / 476.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.1414, allocations: 21.64 kB / 476.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005555/0.142, allocations: 211.5 kB / 476.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.1423, allocations: 0.6964 MB / 477.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.934e-05/0.1423, allocations: 8.422 kB / 477.4 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.1424, allocations: 15.44 kB / 477.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1424, allocations: 0 / 477.4 MB, free: 6.496 MB / 350.1 MB Notification: Performance of Templates: time 0.003796/0.1462, allocations: 0.9476 MB / 478.4 MB, free: 5.555 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches