Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009017/0.0009017, allocations: 175.3 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.18/1.18, allocations: 205.4 MB / 222.9 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000705/0.000705, allocations: 88.78 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2767/0.2767, allocations: 43.58 MB / 363.1 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003634, allocations: 19.94 kB / 432 MB, free: 5.602 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.08681, allocations: 58.86 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00149/0.08834, allocations: 1.303 MB / 492.1 MB, free: 9.352 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006427/0.089, allocations: 491.9 kB / 492.6 MB, free: 8.863 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.219e-05/0.08907, allocations: 8 kB / 492.6 MB, free: 8.855 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.711e-05/0.08917, allocations: 15.86 kB / 492.6 MB, free: 8.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.214e-05/0.08922, allocations: 3.938 kB / 492.6 MB, free: 8.836 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001375/0.08936, allocations: 31.95 kB / 492.7 MB, free: 8.805 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001088/0.08948, allocations: 71.78 kB / 492.7 MB, free: 8.734 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.267e-05/0.08958, allocations: 28.2 kB / 492.8 MB, free: 8.707 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.456e-05/0.08962, allocations: 27.86 kB / 492.8 MB, free: 8.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.08968, allocations: 27.84 kB / 492.8 MB, free: 8.652 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.08971, allocations: 0 / 492.8 MB, free: 8.652 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.242e-05/0.08973, allocations: 4 kB / 492.8 MB, free: 8.648 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.08976, allocations: 15.92 kB / 492.8 MB, free: 8.633 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.148e-05/0.08981, allocations: 49.52 kB / 492.9 MB, free: 8.578 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.105e-05/0.08989, allocations: 56.05 kB / 492.9 MB, free: 8.523 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.0899, allocations: 4 kB / 492.9 MB, free: 8.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08991, allocations: 0 / 492.9 MB, free: 8.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.08992, allocations: 0 / 492.9 MB, free: 8.52 MB / 378.7 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.0004317/0.09035, allocations: 375.2 kB / 493.3 MB, free: 8.105 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.09039, allocations: 8.031 kB / 493.3 MB, free: 8.098 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.35e-05/0.09043, allocations: 8.844 kB / 493.3 MB, free: 8.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.09059, allocations: 192.1 kB / 493.5 MB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.09061, allocations: 8.375 kB / 493.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.364e-05/0.09064, allocations: 12.38 kB / 493.5 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001248/0.09077, allocations: 77.58 kB / 493.6 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.09079, allocations: 4 kB / 493.6 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.09081, allocations: 7.984 kB / 493.6 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.09082, allocations: 4 kB / 493.6 MB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.3e-05/0.09089, allocations: 31.92 kB / 493.7 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004895/0.09139, allocations: 368.5 kB / 494 MB, free: 7.309 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.755e-05/0.09149, allocations: 42.58 kB / 494.1 MB, free: 7.258 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.208e-05/0.09153, allocations: 20.86 kB / 494.1 MB, free: 7.234 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.065e-06/0.09155, allocations: 4 kB / 494.1 MB, free: 7.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001322/0.09168, allocations: 63.39 kB / 494.1 MB, free: 7.156 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.09169, allocations: 0 / 494.1 MB, free: 7.156 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001819/0.09188, allocations: 93.53 kB / 494.2 MB, free: 7.059 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.09192, allocations: 51.41 kB / 494.3 MB, free: 6.996 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.09203, allocations: 141.8 kB / 494.4 MB, free: 6.848 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.09205, allocations: 29.7 kB / 494.5 MB, free: 6.812 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.913e-05/0.09211, allocations: 96.19 kB / 494.5 MB, free: 6.715 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.09213, allocations: 23.72 kB / 494.6 MB, free: 6.691 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.09214, allocations: 4 kB / 494.6 MB, free: 6.688 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.545e-05/0.09223, allocations: 318.8 kB / 494.9 MB, free: 6.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.727e-05/0.09228, allocations: 19.98 kB / 494.9 MB, free: 6.348 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.415e-05/0.09233, allocations: 38.56 kB / 494.9 MB, free: 6.301 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.362e-05/0.09241, allocations: 46.52 kB / 495 MB, free: 6.246 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.09242, allocations: 0 / 495 MB, free: 6.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001199/0.09254, allocations: 85.83 kB / 495.1 MB, free: 6.156 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.09256, allocations: 12.06 kB / 495.1 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.09257, allocations: 0 / 495.1 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.09258, allocations: 4.125 kB / 495.1 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.568e-05/0.09264, allocations: 11.98 kB / 495.1 MB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.09266, allocations: 3.938 kB / 495.1 MB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.503e-05/0.09273, allocations: 15.91 kB / 495.1 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.09274, allocations: 0 / 495.1 MB, free: 6.109 MB / 378.7 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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.973e-05/0.09283, allocations: 125.7 kB / 495.2 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.09285, allocations: 15.89 kB / 495.3 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.496e-05/0.09288, allocations: 12.66 kB / 495.3 MB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.09289, allocations: 4 kB / 495.3 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.0929, allocations: 3.938 kB / 495.3 MB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.0929, allocations: 4 kB / 495.3 MB, free: 5.941 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.0932, allocations: 342.5 kB / 495.6 MB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.09321, allocations: 0 / 495.6 MB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.458e-05/0.09326, allocations: 7.938 kB / 495.6 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.09327, allocations: 0 / 495.6 MB, free: 5.543 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.09329, allocations: 8 kB / 495.6 MB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.0933, allocations: 7.984 kB / 495.6 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.0933, allocations: 0 / 495.6 MB, free: 5.527 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.09348, allocations: 183.4 kB / 495.8 MB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.32e-05/0.09354, allocations: 93.03 kB / 495.9 MB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.09356, allocations: 0 / 495.9 MB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/0.09365, allocations: 4 kB / 495.9 MB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.0937, allocations: 12.05 kB / 495.9 MB, free: 5.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.09371, allocations: 11.98 kB / 495.9 MB, free: 5.195 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.854e-05/0.09378, allocations: 106.5 kB / 496 MB, free: 5.094 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09378, allocations: 0 / 496 MB, free: 5.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002171/0.094, allocations: 15.91 kB / 496.1 MB, free: 5.078 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.827e-05/0.09409, allocations: 103.2 kB / 496.2 MB, free: 4.965 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001044/0.0942, allocations: 39.98 kB / 496.2 MB, free: 4.926 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.09421, allocations: 0 / 496.2 MB, free: 4.926 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.799e-05/0.09426, allocations: 28.05 kB / 496.2 MB, free: 4.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.09454, allocations: 19.92 kB / 496.2 MB, free: 4.879 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004485/0.09499, allocations: 270.7 kB / 496.5 MB, free: 4.582 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.09522, allocations: 0.6926 MB / 497.2 MB, free: 3.863 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.029e-05/0.09525, allocations: 15.38 kB / 497.2 MB, free: 3.848 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09526, allocations: 0 / 497.2 MB, free: 3.848 MB / 378.7 MB Notification: Performance of Templates: time 0.002048/0.09731, allocations: 1.141 MB / 498.4 MB, free: 2.707 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches