Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 96.48 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 185.3 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 223.2 MB / 241.8 MB, free: 380 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2987/0.2987, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003906, allocations: 8 kB / 409.5 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1828, allocations: 61.92 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00116/0.184, allocations: 0.5148 MB / 472 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002599/0.1843, allocations: 47.84 kB / 472 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.27e-05/0.1843, allocations: 4 kB / 472 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.1844, allocations: 3.938 kB / 472 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.934e-05/0.1845, allocations: 4 kB / 472 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001104/0.1846, allocations: 15.98 kB / 472 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.1847, allocations: 27.91 kB / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.1848, allocations: 15.98 kB / 472.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.585e-05/0.1849, allocations: 4 kB / 472.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.545e-05/0.1849, allocations: 7.922 kB / 472.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.1849, allocations: 3.938 kB / 472.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.285e-05/0.1849, allocations: 4 kB / 472.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.185, allocations: 7.984 kB / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.926e-05/0.185, allocations: 29.7 kB / 472.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.217e-05/0.1851, allocations: 19.97 kB / 472.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1851, allocations: 0 / 472.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1851, allocations: 0 / 472.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1851, allocations: 0 / 472.2 MB, free: 13.05 MB / 350.1 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.0005056/0.1856, allocations: 347.5 kB / 472.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1857, allocations: 12.03 kB / 472.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.1857, allocations: 0 / 472.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.1859, allocations: 179 kB / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1859, allocations: 4 kB / 472.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.186, allocations: 11.98 kB / 472.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.1861, allocations: 53.58 kB / 472.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1861, allocations: 0 / 472.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.1862, allocations: 4 kB / 472.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.1862, allocations: 0 / 472.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.482e-05/0.1862, allocations: 15.94 kB / 472.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005871/0.1868, allocations: 300.6 kB / 473.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.799e-05/0.1869, allocations: 22.58 kB / 473.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.1869, allocations: 3.938 kB / 473.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001386/0.1871, allocations: 51.47 kB / 473.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.1871, allocations: 0 / 473.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001703/0.1872, allocations: 53.77 kB / 473.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.1873, allocations: 51.41 kB / 473.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.1875, allocations: 126 kB / 473.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.754e-05/0.1875, allocations: 29.69 kB / 473.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.1877, allocations: 84.14 kB / 473.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.1877, allocations: 7.906 kB / 473.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.1877, allocations: 4 kB / 473.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1878, allocations: 318.8 kB / 473.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.629e-05/0.1879, allocations: 8 kB / 473.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.401e-05/0.1879, allocations: 17.72 kB / 473.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.207e-05/0.1879, allocations: 8 kB / 473.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1879, allocations: 0 / 473.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.883e-05/0.188, allocations: 57.53 kB / 473.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.188, allocations: 4 kB / 473.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.188, allocations: 0 / 473.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1881, allocations: 4 kB / 473.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.171e-05/0.1881, allocations: 0 / 473.9 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.1881, allocations: 4 kB / 473.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.338e-05/0.1882, allocations: 12.02 kB / 473.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1882, allocations: 4 kB / 473.9 MB, free: 11.06 MB / 350.1 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 8.949e-05/0.1883, allocations: 110.3 kB / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.027e-05/0.1883, allocations: 4 kB / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.1883, allocations: 7.906 kB / 474 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1883, allocations: 0 / 474 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.1883, allocations: 4 kB / 474 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1884, allocations: 7.938 kB / 474 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000527/0.1889, allocations: 314.4 kB / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-06/0.1889, allocations: 4.375 kB / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.824e-05/0.1889, allocations: 0 / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1889, allocations: 0 / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.189, allocations: 0 / 474.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.189, allocations: 3.938 kB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.189, allocations: 4 kB / 474.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001933/0.1892, allocations: 155.4 kB / 474.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.053e-05/0.1892, allocations: 85.08 kB / 474.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.1892, allocations: 0 / 474.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.973e-05/0.1893, allocations: 8.031 kB / 474.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.768e-05/0.1893, allocations: 0 / 474.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.1894, allocations: 3.984 kB / 474.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.554e-05/0.1894, allocations: 87.28 kB / 474.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1894, allocations: 4 kB / 474.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002158/0.1896, allocations: 4 kB / 474.7 MB, free: 10.16 MB / 350.1 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 0.0002707/0.1899, allocations: 99.23 kB / 474.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.018e-05/0.19, allocations: 20.17 kB / 474.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.19, allocations: 0 / 474.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.035e-05/0.19, allocations: 8 kB / 474.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.1902, allocations: 11.94 kB / 474.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002983/0.1905, allocations: 154.9 kB / 475 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.1908, allocations: 0.6848 MB / 475.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.177e-05/0.1909, allocations: 7.938 kB / 475.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.422e-05/0.1909, allocations: 11.44 kB / 475.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1909, allocations: 0 / 475.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of Templates: time 0.002496/0.1934, allocations: 461 kB / 476.1 MB, free: 8.66 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches