Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009421/0.0009421, allocations: 202.8 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007733/0.0007732, allocations: 104.1 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1874/0.1874, allocations: 44.84 MB / 392 MB, free: 9.324 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002376, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.0923, allocations: 62.96 MB / 0.5153 GB, free: 2.773 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001692/0.09404, allocations: 1.32 MB / 0.5166 GB, free: 1.434 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007743/0.09483, allocations: 0.5303 MB / 0.5171 GB, free: 0.8984 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.932e-05/0.09492, allocations: 11.94 kB / 0.5171 GB, free: 0.8867 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.09503, allocations: 7.922 kB / 0.5171 GB, free: 0.8789 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.628e-05/0.09508, allocations: 15.86 kB / 0.5172 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.0954, allocations: 78.33 kB / 0.5172 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.09555, allocations: 99.73 kB / 0.5173 GB, free: 0.6914 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.09566, allocations: 23.98 kB / 0.5174 GB, free: 0.668 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.169e-05/0.09573, allocations: 35.86 kB / 0.5174 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.414e-05/0.0958, allocations: 35.83 kB / 0.5174 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.09583, allocations: 4 kB / 0.5174 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.237e-05/0.09585, allocations: 0 / 0.5174 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.667e-05/0.09588, allocations: 15.92 kB / 0.5174 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.065e-05/0.09593, allocations: 41.62 kB / 0.5175 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 9.513e-05/0.09603, allocations: 52.12 kB / 0.5175 GB, free: 492 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.09604, allocations: 4 kB / 0.5175 GB, free: 488 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09605, allocations: 0 / 0.5175 GB, free: 488 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.09606, allocations: 0 / 0.5175 GB, free: 488 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005833/0.09665, allocations: 403.1 kB / 0.5179 GB, free: 36 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.851e-05/0.09668, allocations: 8.031 kB / 0.5179 GB, free: 28 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.09672, allocations: 11.81 kB / 0.5179 GB, free: 16 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1759/0.2726, allocations: 197.4 kB / 0.5181 GB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.2726, allocations: 11.84 kB / 0.5181 GB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.2727, allocations: 11.8 kB / 0.5181 GB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003146/0.273, allocations: 107.9 kB / 0.5183 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.273, allocations: 0.6562 kB / 0.5183 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.273, allocations: 3.641 kB / 0.5183 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.2731, allocations: 1.125 kB / 0.5183 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.2732, allocations: 58.11 kB / 0.5183 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006533/0.2739, allocations: 404.8 kB / 0.5187 GB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.2743, allocations: 116.4 kB / 0.5188 GB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.2744, allocations: 39.59 kB / 0.5188 GB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.2744, allocations: 0.6562 kB / 0.5188 GB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.2747, allocations: 108.9 kB / 0.519 GB, free: 11.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 2.414e-06/0.2747, allocations: 0 / 0.519 GB, free: 11.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004604/0.2752, allocations: 158.5 kB / 0.5191 GB, free: 11.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.2752, allocations: 57.48 kB / 0.5192 GB, free: 11.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.2753, allocations: 159.3 kB / 0.5193 GB, free: 11.19 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.2753, allocations: 30.27 kB / 0.5193 GB, free: 11.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.21e-05/0.2754, allocations: 102.6 kB / 0.5194 GB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.2754, allocations: 19.95 kB / 0.5195 GB, free: 11.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-06/0.2754, allocations: 1.312 kB / 0.5195 GB, free: 11.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.2e-05/0.2755, allocations: 322.1 kB / 0.5198 GB, free: 10.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.2756, allocations: 40.67 kB / 0.5198 GB, free: 10.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.2757, allocations: 52.56 kB / 0.5199 GB, free: 10.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.2759, allocations: 42.88 kB / 0.5199 GB, free: 10.72 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2759, allocations: 0.5156 kB / 0.5199 GB, free: 10.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002828/0.2762, allocations: 126.6 kB / 0.52 GB, free: 10.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.2762, allocations: 6.141 kB / 0.52 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.2762, allocations: 4.938 kB / 0.52 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.2762, allocations: 1.344 kB / 0.52 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.507e-05/0.2763, allocations: 19.94 kB / 0.52 GB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2763, allocations: 5.766 kB / 0.5201 GB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.518e-05/0.2764, allocations: 22.2 kB / 0.5201 GB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.2764, allocations: 2.406 kB / 0.5201 GB, free: 10.67 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.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.979e-05/0.2765, allocations: 125.6 kB / 0.5202 GB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.672e-05/0.2765, allocations: 12.56 kB / 0.5202 GB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.2766, allocations: 15.2 kB / 0.5202 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2766, allocations: 1.031 kB / 0.5202 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2766, allocations: 0 / 0.5202 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2766, allocations: 4.562 kB / 0.5202 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004271/0.277, allocations: 396.1 kB / 0.5206 GB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.277, allocations: 0 / 0.5206 GB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.393e-05/0.2771, allocations: 18.55 kB / 0.5206 GB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2771, allocations: 4 kB / 0.5206 GB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.2771, allocations: 2.469 kB / 0.5206 GB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2772, allocations: 4.859 kB / 0.5206 GB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2772, allocations: 0 / 0.5206 GB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000424/0.2776, allocations: 255.2 kB / 0.5209 GB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.482e-05/0.2776, allocations: 93.61 kB / 0.521 GB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.2776, allocations: 3.828 kB / 0.521 GB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.2778, allocations: 28.55 kB / 0.521 GB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.2779, allocations: 18.8 kB / 0.521 GB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.2779, allocations: 2.875 kB / 0.521 GB, free: 9.969 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.891e-05/0.2779, allocations: 111.2 kB / 0.5211 GB, free: 9.895 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2779, allocations: 3.938 kB / 0.5211 GB, free: 9.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.2782, allocations: 18.44 kB / 0.5211 GB, free: 9.891 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,change.u) * Number of discrete states: 1 (change.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.934e-05/0.2782, allocations: 98.08 kB / 0.5212 GB, free: 9.801 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002886/0.2785, allocations: 90.34 kB / 0.5213 GB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2785, allocations: 0.7188 kB / 0.5213 GB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.2787, allocations: 52.2 kB / 0.5214 GB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.279, allocations: 17.55 kB / 0.5214 GB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/0.2794, allocations: 259.5 kB / 0.5216 GB, free: 9.598 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001006/0.2795, allocations: 0.6975 MB / 0.5223 GB, free: 8.902 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.582e-05/0.2796, allocations: 13.48 kB / 0.5223 GB, free: 8.898 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2796, allocations: 5.031 kB / 0.5223 GB, free: 8.895 MB / 346.7 MB Notification: Performance of Templates: time 0.002619/0.2822, allocations: 1.329 MB / 0.5236 GB, free: 8.816 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches