Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001133, allocations: 95.81 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 208.3 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.258/0.258, allocations: 45.91 MB / 344 MB, free: 12.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003233, allocations: 8 kB / 417.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1799, allocations: 63.46 MB / 481.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001534/0.1815, allocations: 0.5177 MB / 481.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002776/0.1818, allocations: 51.89 kB / 481.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.118e-05/0.1819, allocations: 0 / 481.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.157e-05/0.182, allocations: 7.938 kB / 482 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.597e-05/0.1821, allocations: 4 kB / 482 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.1822, allocations: 11.98 kB / 482 MB, free: 4.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.1824, allocations: 31.91 kB / 482 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.1826, allocations: 4 kB / 482 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.89e-05/0.1826, allocations: 15.92 kB / 482 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.174e-05/0.1827, allocations: 7.938 kB / 482 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.1827, allocations: 3.938 kB / 482 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.393e-05/0.1828, allocations: 0 / 482 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.05e-05/0.1828, allocations: 8 kB / 482 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.493e-05/0.1829, allocations: 37.62 kB / 482.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.984e-05/0.183, allocations: 19.95 kB / 482.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.183, allocations: 0 / 482.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.691e-06/0.183, allocations: 0 / 482.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.183, allocations: 3.938 kB / 482.1 MB, free: 4.734 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.0006864/0.1837, allocations: 343.5 kB / 482.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.1838, allocations: 8.031 kB / 482.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.219e-05/0.1838, allocations: 4 kB / 482.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.1842, allocations: 182.9 kB / 482.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.1842, allocations: 4 kB / 482.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.1842, allocations: 4 kB / 482.6 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.1844, allocations: 53.62 kB / 482.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1844, allocations: 0 / 482.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.1845, allocations: 0 / 482.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1845, allocations: 0 / 482.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.256e-05/0.1845, allocations: 15.98 kB / 482.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007598/0.1853, allocations: 308.7 kB / 483 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.287e-05/0.1854, allocations: 22.52 kB / 483 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.1854, allocations: 64 / 483 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001662/0.1856, allocations: 51.41 kB / 483.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.874e-06/0.1856, allocations: 0 / 483.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002484/0.1859, allocations: 61.48 kB / 483.1 MB, free: 3.527 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.186, allocations: 59.41 kB / 483.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.1861, allocations: 114 kB / 483.3 MB, free: 3.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.1861, allocations: 25.7 kB / 483.3 MB, free: 3.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.993e-05/0.1862, allocations: 92.12 kB / 483.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.1862, allocations: 3.906 kB / 483.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.1862, allocations: 0 / 483.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1864, allocations: 318.8 kB / 483.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.724e-05/0.1864, allocations: 384 / 483.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.508e-05/0.1865, allocations: 29.7 kB / 483.8 MB, free: 2.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.94e-05/0.1865, allocations: 4 kB / 483.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1865, allocations: 0 / 483.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001006/0.1866, allocations: 61.47 kB / 483.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.1867, allocations: 8 kB / 483.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1867, allocations: 0 / 483.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.1867, allocations: 0 / 483.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.347e-05/0.1868, allocations: 4 kB / 483.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.1868, allocations: 7.984 kB / 483.9 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.54e-05/0.1868, allocations: 7.938 kB / 483.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-06/0.1868, allocations: 0 / 483.9 MB, free: 2.75 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 0.0001166/0.187, allocations: 117.8 kB / 484 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.398e-05/0.187, allocations: 3.938 kB / 484 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.187, allocations: 7.906 kB / 484 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.187, allocations: 0 / 484 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.187, allocations: 0 / 484 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1871, allocations: 3.953 kB / 484 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003549/0.1874, allocations: 306.5 kB / 484.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1874, allocations: 0 / 484.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.554e-05/0.1875, allocations: 4 kB / 484.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1875, allocations: 0 / 484.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.1875, allocations: 384 / 484.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.1875, allocations: 3.953 kB / 484.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1875, allocations: 3.938 kB / 484.3 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.1877, allocations: 151.5 kB / 484.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.84e-05/0.1878, allocations: 92.97 kB / 484.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.1878, allocations: 0 / 484.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.896e-05/0.1879, allocations: 0 / 484.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.1879, allocations: 3.953 kB / 484.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.1879, allocations: 4 kB / 484.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.457e-05/0.188, allocations: 95.27 kB / 484.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.188, allocations: 0 / 484.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00022/0.1882, allocations: 4 kB / 484.6 MB, free: 1.859 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.0001117/0.1883, allocations: 95.84 kB / 484.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.623e-05/0.1884, allocations: 23.92 kB / 484.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1885, allocations: 288 / 484.8 MB, free: 1.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.904e-05/0.1885, allocations: 4 kB / 484.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.1887, allocations: 19.92 kB / 484.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003567/0.1891, allocations: 144.7 kB / 484.9 MB, free: 1.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.1894, allocations: 0.6887 MB / 485.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.958e-05/0.1894, allocations: 4 kB / 485.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.798e-05/0.1895, allocations: 11.38 kB / 485.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1895, allocations: 0 / 485.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of Templates: time 0.003104/0.1926, allocations: 457.1 kB / 486.1 MB, free: 376 kB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches