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.001464/0.001465, allocations: 100.6 kB / 16.94 MB, free: 6.184 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.00127/0.00127, allocations: 191.4 kB / 17.86 MB, free: 5.289 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.537/1.537, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.2268/0.2268, allocations: 43.52 MB / 314.6 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.001539/0.001539, allocations: 66.52 kB / 383.4 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1387, allocations: 57.79 MB / 441.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002725/0.1414, allocations: 1.61 MB / 442.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007989/0.1423, allocations: 0.519 MB / 443.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.641e-05/0.1424, allocations: 4 kB / 443.3 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.1425, allocations: 11.86 kB / 443.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.359e-05/0.1426, allocations: 11.88 kB / 443.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.1427, allocations: 39.88 kB / 443.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.1429, allocations: 79.78 kB / 443.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.143, allocations: 28.44 kB / 443.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.512e-05/0.1431, allocations: 31.86 kB / 443.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.131e-05/0.1431, allocations: 35.78 kB / 443.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.1432, allocations: 11.94 kB / 443.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.554e-05/0.1432, allocations: 8 kB / 443.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.284e-05/0.1432, allocations: 11.98 kB / 443.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.662e-05/0.1433, allocations: 43.73 kB / 443.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.1434, allocations: 67.78 kB / 443.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1434, allocations: 0 / 443.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1434, allocations: 0 / 443.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1434, allocations: 0 / 443.7 MB, free: 4.383 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.0005346/0.144, allocations: 395.2 kB / 444.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.144, allocations: 11.89 kB / 444.1 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.144, allocations: 8.844 kB / 444.1 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.1442, allocations: 196.1 kB / 444.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1442, allocations: 4.375 kB / 444.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.1443, allocations: 12.38 kB / 444.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001391/0.1444, allocations: 81.86 kB / 444.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1444, allocations: 3.984 kB / 444.4 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.1444, allocations: 0 / 444.4 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1445, allocations: 4 kB / 444.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.949e-05/0.1445, allocations: 39.92 kB / 444.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004872/0.145, allocations: 352.5 kB / 444.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.495e-05/0.1451, allocations: 50.5 kB / 444.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.845e-05/0.1452, allocations: 16.89 kB / 444.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.1452, allocations: 0 / 444.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.1454, allocations: 71.44 kB / 444.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.031e-06/0.1454, allocations: 0 / 444.9 MB, free: 2.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002055/0.1456, allocations: 93.45 kB / 445 MB, free: 2.898 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.1456, allocations: 51.41 kB / 445 MB, free: 2.836 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.236e-05/0.1457, allocations: 138.5 kB / 445.2 MB, free: 2.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.1457, allocations: 33.7 kB / 445.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.1458, allocations: 100 kB / 445.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.1458, allocations: 15.8 kB / 445.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.1458, allocations: 29.7 kB / 445.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.204e-05/0.1459, allocations: 322.8 kB / 445.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.487e-05/0.1459, allocations: 12 kB / 445.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.205e-05/0.146, allocations: 38.56 kB / 445.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.606e-05/0.1461, allocations: 54.52 kB / 445.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1461, allocations: 192 / 445.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000107/0.1462, allocations: 85.53 kB / 445.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.1462, allocations: 10.91 kB / 445.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.1462, allocations: 4 kB / 445.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1463, allocations: 3.938 kB / 445.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.566e-05/0.1463, allocations: 15.92 kB / 445.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.1463, allocations: 4 kB / 445.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.192e-05/0.1464, allocations: 8.078 kB / 445.9 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.1464, allocations: 8.062 kB / 445.9 MB, free: 1.914 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.325e-05/0.1465, allocations: 127 kB / 446 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.1465, allocations: 7.906 kB / 446 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.429e-05/0.1466, allocations: 16.66 kB / 446.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1466, allocations: 0 / 446.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1466, allocations: 3.938 kB / 446.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.1466, allocations: 0 / 446.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.1468, allocations: 354.3 kB / 446.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1469, allocations: 4 kB / 446.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.613e-05/0.1469, allocations: 7.984 kB / 446.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1469, allocations: 0 / 446.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1469, allocations: 0 / 446.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1469, allocations: 0 / 446.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1469, allocations: 0 / 446.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001693/0.1471, allocations: 199.8 kB / 446.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.956e-05/0.1472, allocations: 85.05 kB / 446.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.1472, allocations: 0 / 446.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-05/0.1473, allocations: 16.05 kB / 446.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.343e-05/0.1473, allocations: 4 kB / 446.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.1473, allocations: 7.969 kB / 446.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.436e-05/0.1474, allocations: 103.3 kB / 446.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1474, allocations: 0 / 446.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002283/0.1476, allocations: 16 kB / 446.8 MB, free: 0.8789 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 8.659e-05/0.1477, allocations: 91.25 kB / 446.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.1479, allocations: 55.91 kB / 447 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1479, allocations: 4 kB / 447 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.476e-05/0.1479, allocations: 19.98 kB / 447 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.1482, allocations: 23.86 kB / 447 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004962/0.1487, allocations: 253.1 kB / 447.3 MB, free: 412 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.149, allocations: 0.6961 MB / 448 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/0.149, allocations: 11.44 kB / 448 MB, free: 15.67 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.149, allocations: 0 / 448 MB, free: 15.67 MB / 334.1 MB Notification: Performance of Templates: time 0.002913/0.1519, allocations: 1.16 MB / 449.1 MB, free: 14.51 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/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