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.00134/0.00134, allocations: 107.5 kB / 17.03 MB, free: 5.66 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.001399/0.001399, allocations: 190.9 kB / 17.96 MB, free: 5.066 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.684/1.684, allocations: 205.1 MB / 223.8 MB, free: 12.23 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.2431/0.2431, allocations: 43.52 MB / 314.7 MB, free: 472 kB / 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.001625/0.001626, allocations: 70.72 kB / 384.2 MB, free: 56.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1388, allocations: 57.79 MB / 442 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002763/0.1416, allocations: 1.607 MB / 443.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009407/0.1426, allocations: 0.5229 MB / 444.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.1427, allocations: 0 / 444.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.1429, allocations: 7.875 kB / 444.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.652e-05/0.143, allocations: 23.86 kB / 444.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.1433, allocations: 31.91 kB / 444.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001767/0.1435, allocations: 87.69 kB / 444.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.1436, allocations: 28.16 kB / 444.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.02e-05/0.1437, allocations: 23.94 kB / 444.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.827e-05/0.1438, allocations: 35.78 kB / 444.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.1438, allocations: 8 kB / 444.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.759e-05/0.1438, allocations: 12 kB / 444.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.176e-05/0.1439, allocations: 11.97 kB / 444.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.071e-05/0.1439, allocations: 39.73 kB / 444.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.1441, allocations: 79.66 kB / 444.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1441, allocations: 0 / 444.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.1441, allocations: 0 / 444.5 MB, free: 3.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1441, allocations: 3.938 kB / 444.5 MB, free: 3.609 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.0006282/0.1448, allocations: 387.2 kB / 444.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/0.1448, allocations: 15.89 kB / 444.9 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.639e-05/0.1449, allocations: 8.844 kB / 444.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.1451, allocations: 196.2 kB / 445.1 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.1452, allocations: 8.312 kB / 445.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.1452, allocations: 8.375 kB / 445.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.1454, allocations: 77.92 kB / 445.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1454, allocations: 0 / 445.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.1454, allocations: 4 kB / 445.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1454, allocations: 0 / 445.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.099e-05/0.1455, allocations: 35.98 kB / 445.2 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005621/0.1461, allocations: 356.4 kB / 445.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.924e-05/0.1462, allocations: 42.56 kB / 445.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.904e-05/0.1462, allocations: 16.89 kB / 445.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.1463, allocations: 3.938 kB / 445.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/0.1464, allocations: 75.42 kB / 445.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1464, allocations: 0 / 445.7 MB, free: 2.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002273/0.1466, allocations: 89.52 kB / 445.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.1467, allocations: 55.41 kB / 445.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.525e-05/0.1468, allocations: 140.1 kB / 446 MB, free: 1.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1468, allocations: 29.7 kB / 446 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/0.1469, allocations: 104 kB / 446.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.1469, allocations: 19.8 kB / 446.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.906e-05/0.1469, allocations: 29.7 kB / 446.1 MB, free: 1.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.824e-05/0.147, allocations: 318.8 kB / 446.4 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.511e-05/0.147, allocations: 12 kB / 446.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.074e-05/0.1471, allocations: 38.56 kB / 446.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.398e-05/0.1472, allocations: 58.52 kB / 446.6 MB, free: 1.289 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1472, allocations: 3.938 kB / 446.6 MB, free: 1.285 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000107/0.1473, allocations: 85.53 kB / 446.6 MB, free: 1.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.1473, allocations: 8 kB / 446.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.1473, allocations: 0 / 446.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1473, allocations: 3.938 kB / 446.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.817e-05/0.1474, allocations: 15.97 kB / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.1474, allocations: 0 / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.963e-05/0.1475, allocations: 8.328 kB / 446.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.1475, allocations: 8 kB / 446.7 MB, free: 1.152 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 8.338e-05/0.1476, allocations: 134.8 kB / 446.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.1476, allocations: 7.906 kB / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.587e-05/0.1476, allocations: 16.66 kB / 446.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1477, allocations: 0 / 446.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1477, allocations: 0 / 446.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.1477, allocations: 0 / 446.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.1479, allocations: 350.4 kB / 447.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.148, allocations: 4 kB / 447.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.692e-05/0.148, allocations: 7.938 kB / 447.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.148, allocations: 0 / 447.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.148, allocations: 3.984 kB / 447.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.148, allocations: 4 kB / 447.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.148, allocations: 0 / 447.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001589/0.1482, allocations: 191.9 kB / 447.4 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.601e-05/0.1482, allocations: 85.05 kB / 447.5 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.1483, allocations: 4.062 kB / 447.5 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.1483, allocations: 11.98 kB / 447.5 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.1484, allocations: 4 kB / 447.5 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.1484, allocations: 0 / 447.5 MB, free: 248 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.463e-05/0.1485, allocations: 110.2 kB / 447.6 MB, free: 140 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1485, allocations: 0 / 447.6 MB, free: 140 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.1487, allocations: 16 kB / 447.6 MB, free: 124 kB / 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 8.661e-05/0.1488, allocations: 99.19 kB / 447.7 MB, free: 16 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000175/0.149, allocations: 52.02 kB / 447.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.149, allocations: 3.938 kB / 447.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.251e-05/0.149, allocations: 23.88 kB / 447.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.1494, allocations: 23.86 kB / 447.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005086/0.1499, allocations: 215.3 kB / 448 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1502, allocations: 0.7002 MB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.798e-05/0.1502, allocations: 12.42 kB / 448.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.155e-05/0.1502, allocations: 11.44 kB / 448.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1503, allocations: 4 kB / 448.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Templates: time 0.00394/0.1542, allocations: 0.9431 MB / 449.7 MB, free: 13.99 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 -s cvode -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/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) Reference file matches