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.00105/0.00105, allocations: 197.4 kB / 16.1 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.5 MB / 243.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007391/0.0007391, allocations: 98.41 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2963/0.2963, allocations: 44.81 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002491, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2757, allocations: 62.95 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001367/0.2771, allocations: 1.316 MB / 0.5171 GB, free: 36.29 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005778/0.2777, allocations: 492.9 kB / 0.5176 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.56e-05/0.2778, allocations: 3.938 kB / 0.5176 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.922e-05/0.2779, allocations: 7.656 kB / 0.5176 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.821e-05/0.2779, allocations: 7.219 kB / 0.5176 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001445/0.2781, allocations: 33.03 kB / 0.5177 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.2782, allocations: 70.45 kB / 0.5177 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.2783, allocations: 28.12 kB / 0.5178 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.285e-05/0.2783, allocations: 20.06 kB / 0.5178 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.121e-05/0.2784, allocations: 32.22 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.455e-05/0.2784, allocations: 2.844 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.158e-05/0.2784, allocations: 2.938 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.635e-05/0.2785, allocations: 13.81 kB / 0.5178 GB, free: 35.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.591e-05/0.2785, allocations: 54.45 kB / 0.5179 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.697e-05/0.2786, allocations: 45.56 kB / 0.5179 GB, free: 35.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2786, allocations: 6.844 kB / 0.5179 GB, free: 35.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2786, allocations: 0 / 0.5179 GB, free: 35.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.557e-06/0.2786, allocations: 0 / 0.5179 GB, free: 35.77 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.0004014/0.279, allocations: 374.3 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.2791, allocations: 11.31 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.2791, allocations: 7.719 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.2792, allocations: 196.2 kB / 0.5185 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.2793, allocations: 8.031 kB / 0.5185 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.2793, allocations: 7.469 kB / 0.5185 GB, free: 35.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.2794, allocations: 83.47 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.2794, allocations: 0 / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.2794, allocations: 0 / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2794, allocations: 3 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.744e-05/0.2795, allocations: 36.17 kB / 0.5186 GB, free: 35.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000452/0.28, allocations: 364.7 kB / 0.519 GB, free: 34.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.252e-05/0.2801, allocations: 47.53 kB / 0.519 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.895e-05/0.2801, allocations: 19.36 kB / 0.519 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.2801, allocations: 4 kB / 0.519 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001098/0.2802, allocations: 68.09 kB / 0.5191 GB, free: 34.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.2803, allocations: 0 / 0.5191 GB, free: 34.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001697/0.2804, allocations: 92.58 kB / 0.5192 GB, free: 34.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.319e-05/0.2805, allocations: 51.41 kB / 0.5192 GB, free: 34.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.15e-05/0.2805, allocations: 135.2 kB / 0.5194 GB, free: 34.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.2806, allocations: 32.7 kB / 0.5194 GB, free: 34.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.16e-05/0.2806, allocations: 98.42 kB / 0.5195 GB, free: 34.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.2806, allocations: 26.17 kB / 0.5195 GB, free: 34.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-06/0.2806, allocations: 3.938 kB / 0.5195 GB, free: 34.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.922e-05/0.2807, allocations: 317.8 kB / 0.5198 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.381e-05/0.2807, allocations: 16.31 kB / 0.5198 GB, free: 33.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.698e-05/0.2808, allocations: 41.81 kB / 0.5199 GB, free: 33.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.822e-05/0.2808, allocations: 52.42 kB / 0.5199 GB, free: 33.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2808, allocations: 0 / 0.5199 GB, free: 33.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001086/0.2809, allocations: 93.45 kB / 0.52 GB, free: 33.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.281, allocations: 5.75 kB / 0.52 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.281, allocations: 0 / 0.52 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.281, allocations: 3.938 kB / 0.52 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.237e-05/0.281, allocations: 6.031 kB / 0.52 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.281, allocations: 6.656 kB / 0.52 GB, free: 33.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.296e-05/0.2811, allocations: 13.12 kB / 0.5201 GB, free: 33.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.453e-06/0.2811, allocations: 7.422 kB / 0.5201 GB, free: 33.82 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 5.844e-05/0.2812, allocations: 119.6 kB / 0.5202 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.267e-05/0.2812, allocations: 6.906 kB / 0.5202 GB, free: 33.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.664e-05/0.2812, allocations: 18.53 kB / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2813, allocations: 0 / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2813, allocations: 3.031 kB / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.2813, allocations: 0 / 0.5202 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.2815, allocations: 349 kB / 0.5205 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2815, allocations: 4 kB / 0.5205 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.178e-05/0.2816, allocations: 6.812 kB / 0.5205 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2816, allocations: 0 / 0.5205 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.2816, allocations: 2.938 kB / 0.5205 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2816, allocations: 0 / 0.5205 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2816, allocations: 0 / 0.5205 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.2817, allocations: 194.4 kB / 0.5207 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.305e-05/0.2818, allocations: 83.95 kB / 0.5208 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.2818, allocations: 8 kB / 0.5208 GB, free: 33.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.491e-05/0.2819, allocations: 9.094 kB / 0.5208 GB, free: 33.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.2819, allocations: 17.27 kB / 0.5208 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.381e-06/0.2819, allocations: 0 / 0.5208 GB, free: 33.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.33e-05/0.282, allocations: 111.1 kB / 0.521 GB, free: 32.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.282, allocations: 0 / 0.521 GB, free: 32.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.2822, allocations: 15.84 kB / 0.521 GB, free: 32.98 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 6.611e-05/0.2823, allocations: 98.78 kB / 0.5211 GB, free: 32.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.2824, allocations: 44.91 kB / 0.5211 GB, free: 32.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2824, allocations: 2.812 kB / 0.5211 GB, free: 32.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.303e-05/0.2825, allocations: 26.52 kB / 0.5211 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.2827, allocations: 28.59 kB / 0.5212 GB, free: 32.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.2832, allocations: 252.7 kB / 0.5214 GB, free: 32.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.399e-05/0.2833, allocations: 0.6949 MB / 0.5221 GB, free: 31.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.022e-05/0.2833, allocations: 17.22 kB / 0.5221 GB, free: 31.95 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2833, allocations: 4 kB / 0.5221 GB, free: 31.94 MB / 378.7 MB Notification: Performance of Templates: time 0.001942/0.2853, allocations: 1.133 MB / 0.5232 GB, free: 31.86 MB / 378.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