Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009595/0.0009596, allocations: 200.7 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 226.5 MB / 243.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007424/0.0007424, allocations: 106.7 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1791/0.1791, allocations: 44.84 MB / 392 MB, free: 9.305 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002575, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08191/0.08218, allocations: 62.96 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001523/0.08374, allocations: 1.316 MB / 0.5166 GB, free: 1.445 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006398/0.08439, allocations: 483.2 kB / 0.5171 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.53e-05/0.08445, allocations: 0 / 0.5171 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 7.933e-05/0.08454, allocations: 7.875 kB / 0.5171 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.315e-05/0.08459, allocations: 11.92 kB / 0.5171 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001324/0.08472, allocations: 27.97 kB / 0.5171 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.548e-05/0.08483, allocations: 75.7 kB / 0.5172 GB, free: 0.8477 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.054e-05/0.08492, allocations: 16.22 kB / 0.5172 GB, free: 0.832 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.281e-05/0.08496, allocations: 23.88 kB / 0.5172 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.658e-05/0.08502, allocations: 27.84 kB / 0.5172 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.08504, allocations: 4 kB / 0.5173 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.035e-05/0.08506, allocations: 0 / 0.5173 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.775e-05/0.08508, allocations: 19.91 kB / 0.5173 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.395e-05/0.08512, allocations: 37.69 kB / 0.5173 GB, free: 0.7148 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 6.551e-05/0.08519, allocations: 39.92 kB / 0.5173 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.0852, allocations: 0 / 0.5173 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.0852, allocations: 0 / 0.5173 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.08521, allocations: 0 / 0.5173 GB, free: 0.6758 MB / 346.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.0004396/0.08566, allocations: 387.3 kB / 0.5177 GB, free: 256 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.08569, allocations: 12.03 kB / 0.5177 GB, free: 244 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.08573, allocations: 11.89 kB / 0.5177 GB, free: 232 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1553/0.241, allocations: 195.5 kB / 0.5179 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.2411, allocations: 4.562 kB / 0.5179 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.2412, allocations: 8.25 kB / 0.5179 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.2413, allocations: 70.02 kB / 0.518 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2414, allocations: 7.422 kB / 0.518 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.2414, allocations: 7.422 kB / 0.518 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2414, allocations: 1.312 kB / 0.518 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.031e-05/0.2415, allocations: 33.23 kB / 0.5181 GB, free: 11.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.242, allocations: 355.5 kB / 0.5184 GB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.871e-05/0.2422, allocations: 51.73 kB / 0.5184 GB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.251e-05/0.2422, allocations: 16.88 kB / 0.5185 GB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.2422, allocations: 2.75 kB / 0.5185 GB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001358/0.2424, allocations: 69.12 kB / 0.5185 GB, free: 11.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.415e-06/0.2424, allocations: 4.812 kB / 0.5185 GB, free: 11.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002029/0.2426, allocations: 86.77 kB / 0.5186 GB, free: 11.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/0.2426, allocations: 53.59 kB / 0.5187 GB, free: 11.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.135e-05/0.2427, allocations: 143.5 kB / 0.5188 GB, free: 11.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.2427, allocations: 29.34 kB / 0.5188 GB, free: 11.17 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.907e-05/0.2428, allocations: 99.3 kB / 0.5189 GB, free: 11.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.2428, allocations: 18.03 kB / 0.5189 GB, free: 11.08 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-06/0.2428, allocations: 1.812 kB / 0.5189 GB, free: 11.08 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.265e-05/0.2429, allocations: 325.2 kB / 0.5193 GB, free: 10.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.881e-05/0.2429, allocations: 15.64 kB / 0.5193 GB, free: 10.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.843e-05/0.243, allocations: 38.84 kB / 0.5193 GB, free: 10.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.362e-05/0.243, allocations: 20.14 kB / 0.5193 GB, free: 10.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.243, allocations: 0 / 0.5193 GB, free: 10.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001415/0.2432, allocations: 87.8 kB / 0.5194 GB, free: 10.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2432, allocations: 5.344 kB / 0.5194 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2432, allocations: 1.172 kB / 0.5194 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.2432, allocations: 2.125 kB / 0.5194 GB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.159e-05/0.2433, allocations: 11.86 kB / 0.5194 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.259e-06/0.2433, allocations: 1.062 kB / 0.5194 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.891e-05/0.2434, allocations: 22.53 kB / 0.5194 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.2434, allocations: 2.188 kB / 0.5194 GB, free: 10.68 MB / 346.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 6.213e-05/0.2434, allocations: 121.5 kB / 0.5196 GB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.2435, allocations: 7.766 kB / 0.5196 GB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.423e-05/0.2435, allocations: 15.56 kB / 0.5196 GB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2435, allocations: 1.125 kB / 0.5196 GB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.716e-06/0.2435, allocations: 0 / 0.5196 GB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.2435, allocations: 1.672 kB / 0.5196 GB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.2438, allocations: 350.8 kB / 0.5199 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2438, allocations: 2.391 kB / 0.5199 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-05/0.2439, allocations: 4.078 kB / 0.5199 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2439, allocations: 0.75 kB / 0.5199 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.2439, allocations: 5.266 kB / 0.5199 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.2439, allocations: 0.8438 kB / 0.5199 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2439, allocations: 1.125 kB / 0.5199 GB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001813/0.2441, allocations: 198.3 kB / 0.5201 GB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.341e-05/0.2441, allocations: 89.52 kB / 0.5202 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.2441, allocations: 2.875 kB / 0.5202 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.052e-05/0.2442, allocations: 9.016 kB / 0.5202 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.2443, allocations: 8.422 kB / 0.5202 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.2443, allocations: 5.516 kB / 0.5202 GB, free: 10 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.6e-05/0.2444, allocations: 106.5 kB / 0.5203 GB, free: 9.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2444, allocations: 0 / 0.5203 GB, free: 9.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002129/0.2446, allocations: 18.52 kB / 0.5204 GB, free: 9.922 MB / 346.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 6.947e-05/0.2447, allocations: 99.53 kB / 0.5205 GB, free: 9.832 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001261/0.2448, allocations: 47.06 kB / 0.5205 GB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2448, allocations: 0.5 kB / 0.5205 GB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.74e-05/0.2448, allocations: 21.53 kB / 0.5205 GB, free: 9.828 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.2451, allocations: 24 kB / 0.5205 GB, free: 9.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004617/0.2456, allocations: 260.2 kB / 0.5208 GB, free: 9.629 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.2457, allocations: 0.6995 MB / 0.5215 GB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.2458, allocations: 13.2 kB / 0.5215 GB, free: 8.926 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2458, allocations: 0 / 0.5215 GB, free: 8.926 MB / 346.7 MB Notification: Performance of Templates: time 0.00244/0.2482, allocations: 1.125 MB / 0.5226 GB, free: 8.859 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches