Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009272/0.0009273, allocations: 201.4 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 226.5 MB / 243.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007858/0.0007858, allocations: 93.75 kB / 295.1 MB, free: 10.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1805/0.1805, allocations: 44.85 MB / 392 MB, free: 9.363 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002197/0.0002197, allocations: 8 kB / 464.7 MB, free: 49.81 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.08842, allocations: 62.95 MB / 0.5153 GB, free: 2.82 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009626/0.08943, allocations: 0.5198 MB / 0.5158 GB, free: 2.293 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001759/0.08963, allocations: 47.84 kB / 0.5159 GB, free: 2.246 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.363e-05/0.08971, allocations: 4 kB / 0.5159 GB, free: 2.242 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.707e-05/0.08981, allocations: 11.88 kB / 0.5159 GB, free: 2.23 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 1.338e-05/0.08983, allocations: 0 / 0.5159 GB, free: 2.23 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001016/0.08994, allocations: 11.98 kB / 0.5159 GB, free: 2.219 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.103e-05/0.09003, allocations: 39.84 kB / 0.5159 GB, free: 2.18 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.739e-05/0.09013, allocations: 11.98 kB / 0.5159 GB, free: 2.168 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.343e-05/0.09016, allocations: 8 kB / 0.5159 GB, free: 2.16 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.846e-05/0.0902, allocations: 11.86 kB / 0.516 GB, free: 2.148 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.09022, allocations: 4 kB / 0.516 GB, free: 2.145 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.057e-06/0.09024, allocations: 4 kB / 0.516 GB, free: 2.141 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.648e-06/0.09025, allocations: 0 / 0.516 GB, free: 2.141 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.09029, allocations: 33.7 kB / 0.516 GB, free: 2.102 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 6.14e-05/0.09036, allocations: 23.94 kB / 0.516 GB, free: 2.078 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.09037, allocations: 0 / 0.516 GB, free: 2.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09037, allocations: 0 / 0.516 GB, free: 2.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.09038, allocations: 0 / 0.516 GB, free: 2.078 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003748/0.09076, allocations: 343.5 kB / 0.5163 GB, free: 1.695 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.09081, allocations: 16.03 kB / 0.5164 GB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/0.09085, allocations: 4 kB / 0.5164 GB, free: 1.676 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.09102, allocations: 178.9 kB / 0.5165 GB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-06/0.09103, allocations: 0 / 0.5165 GB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.09106, allocations: 8 kB / 0.5165 GB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.09117, allocations: 53.62 kB / 0.5166 GB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.09119, allocations: 3.984 kB / 0.5166 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.0912, allocations: 0 / 0.5166 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.09121, allocations: 0 / 0.5166 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.193e-05/0.09126, allocations: 19.92 kB / 0.5166 GB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004701/0.09173, allocations: 296.7 kB / 0.5169 GB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.427e-05/0.09179, allocations: 22.56 kB / 0.5169 GB, free: 1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.09182, allocations: 16.86 kB / 0.5169 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.121e-06/0.09183, allocations: 0 / 0.5169 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.527e-05/0.09193, allocations: 51.41 kB / 0.517 GB, free: 0.918 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.09194, allocations: 0 / 0.517 GB, free: 0.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001266/0.09207, allocations: 49.69 kB / 0.517 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.09212, allocations: 55.36 kB / 0.5171 GB, free: 0.7969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.056e-05/0.0922, allocations: 125.8 kB / 0.5172 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.09222, allocations: 25.7 kB / 0.5172 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.884e-05/0.09228, allocations: 92.12 kB / 0.5173 GB, free: 0.5352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.09229, allocations: 3.906 kB / 0.5173 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/0.0923, allocations: 8 kB / 0.5173 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.206e-05/0.0924, allocations: 314.8 kB / 0.5176 GB, free: 212 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.549e-05/0.09242, allocations: 8 kB / 0.5176 GB, free: 204 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.213e-05/0.09246, allocations: 17.7 kB / 0.5177 GB, free: 180 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.037e-05/0.09248, allocations: 8 kB / 0.5177 GB, free: 172 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.09249, allocations: 0 / 0.5177 GB, free: 172 kB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.543e-05/0.09257, allocations: 57.53 kB / 0.5177 GB, free: 108 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.09259, allocations: 5.906 kB / 0.5177 GB, free: 104 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.0926, allocations: 8 kB / 0.5177 GB, free: 96 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.09262, allocations: 0 / 0.5177 GB, free: 96 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.077e-05/0.09265, allocations: 4 kB / 0.5177 GB, free: 92 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.09266, allocations: 3.953 kB / 0.5177 GB, free: 88 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.089e-05/0.09271, allocations: 8 kB / 0.5177 GB, free: 80 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.128e-06/0.09272, allocations: 0 / 0.5177 GB, free: 80 kB / 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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 0.1706/0.2634, allocations: 108.7 kB / 0.5179 GB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.2634, allocations: 2.719 kB / 0.5179 GB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.2634, allocations: 11.8 kB / 0.5179 GB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.2634, allocations: 0.6875 kB / 0.5179 GB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2635, allocations: 3.422 kB / 0.5179 GB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.2635, allocations: 5.469 kB / 0.5179 GB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003458/0.2638, allocations: 299.9 kB / 0.5182 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2638, allocations: 0 / 0.5182 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.539e-05/0.2639, allocations: 3.328 kB / 0.5182 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.2639, allocations: 1.812 kB / 0.5182 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.2639, allocations: 1.828 kB / 0.5182 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2639, allocations: 2.828 kB / 0.5182 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2639, allocations: 0 / 0.5182 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.264, allocations: 160.1 kB / 0.5183 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.076e-05/0.2641, allocations: 86.14 kB / 0.5184 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.2641, allocations: 1.781 kB / 0.5184 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.629e-05/0.2642, allocations: 3.156 kB / 0.5184 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.2642, allocations: 3.484 kB / 0.5184 GB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.2642, allocations: 0.6562 kB / 0.5184 GB, free: 10.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.216e-05/0.2643, allocations: 94.25 kB / 0.5185 GB, free: 10.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2643, allocations: 0 / 0.5185 GB, free: 10.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002568/0.2645, allocations: 12.69 kB / 0.5185 GB, free: 10.71 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 7.905e-05/0.2646, allocations: 92.5 kB / 0.5186 GB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.218e-05/0.2647, allocations: 16.97 kB / 0.5186 GB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2647, allocations: 0 / 0.5186 GB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.936e-05/0.2647, allocations: 12.94 kB / 0.5186 GB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.265, allocations: 13.03 kB / 0.5186 GB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002585/0.2653, allocations: 172.9 kB / 0.5188 GB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.798e-05/0.2654, allocations: 0.6836 MB / 0.5195 GB, free: 9.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.053e-05/0.2654, allocations: 10.03 kB / 0.5195 GB, free: 9.762 MB / 346.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2654, allocations: 0 / 0.5195 GB, free: 9.762 MB / 346.7 MB Notification: Performance of Templates: time 0.00203/0.2675, allocations: 0.7331 MB / 0.5202 GB, free: 9.734 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches