Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.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.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare") translateModel(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001302, allocations: 108.7 kB / 17.21 MB, free: 6.27 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.001421/0.001421, allocations: 194 kB / 18.12 MB, free: 5.363 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.399/1.399, allocations: 222.9 MB / 241.8 MB, free: 13.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2613/0.2613, allocations: 44.17 MB / 336.1 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002184, allocations: 60.8 kB / 407.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1636, allocations: 60.82 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.006707/0.1703, allocations: 1.716 MB / 470.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.1721, allocations: 0.5222 MB / 470.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.1723, allocations: 4 kB / 470.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001889/0.1725, allocations: 7.875 kB / 470.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.1727, allocations: 15.91 kB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000528/0.1732, allocations: 51.89 kB / 470.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002729/0.1735, allocations: 103.7 kB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.1738, allocations: 33.38 kB / 471 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.174, allocations: 35.8 kB / 471 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.1742, allocations: 51.75 kB / 471 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.798e-05/0.1743, allocations: 8 kB / 471.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.128e-05/0.1743, allocations: 8 kB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.52e-05/0.1744, allocations: 19.92 kB / 471.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.1745, allocations: 43.73 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.1748, allocations: 99.89 kB / 471.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1748, allocations: 0 / 471.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1748, allocations: 0 / 471.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1748, allocations: 0 / 471.2 MB, free: 12.08 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001064/0.1759, allocations: 411.2 kB / 471.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.176, allocations: 20.02 kB / 471.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.301e-05/0.176, allocations: 12.75 kB / 471.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.1764, allocations: 210.5 kB / 471.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.1764, allocations: 4.375 kB / 471.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.1765, allocations: 12.38 kB / 471.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.1768, allocations: 97.19 kB / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.1768, allocations: 4 kB / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.1769, allocations: 0 / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.1769, allocations: 0 / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.1771, allocations: 55.95 kB / 472 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008184/0.1779, allocations: 384.4 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001993/0.1782, allocations: 62.5 kB / 472.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.1783, allocations: 32.98 kB / 472.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.362e-05/0.1783, allocations: 7.922 kB / 472.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.1786, allocations: 99.34 kB / 472.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.864e-06/0.1787, allocations: 0 / 472.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005732/0.1792, allocations: 129.5 kB / 472.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.1793, allocations: 55.34 kB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.1795, allocations: 137.8 kB / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.1795, allocations: 33.64 kB / 472.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.85e-05/0.1797, allocations: 119.8 kB / 473.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.223e-05/0.1797, allocations: 23.7 kB / 473.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.497e-05/0.1798, allocations: 25.72 kB / 473.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.18, allocations: 326.8 kB / 473.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1801, allocations: 23.98 kB / 473.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.1803, allocations: 79.7 kB / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.1806, allocations: 123.6 kB / 473.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1806, allocations: 0 / 473.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004095/0.181, allocations: 141.4 kB / 473.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.1811, allocations: 4 kB / 473.8 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1811, allocations: 4 kB / 473.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1811, allocations: 0 / 473.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.1813, allocations: 31.86 kB / 473.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.1813, allocations: 4 kB / 473.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.1815, allocations: 16.06 kB / 473.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.1815, allocations: 11.98 kB / 473.9 MB, free: 9.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001561/0.1816, allocations: 130.3 kB / 474 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.006e-05/0.1817, allocations: 7.906 kB / 474 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.827e-05/0.1817, allocations: 12.72 kB / 474 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.1818, allocations: 7.938 kB / 474 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1818, allocations: 384 / 474 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.1818, allocations: 4.078 kB / 474 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002514/0.182, allocations: 209.5 kB / 474.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1821, allocations: 8 kB / 474.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.1822, allocations: 15.92 kB / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1822, allocations: 0 / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.1823, allocations: 0 / 474.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.1823, allocations: 7.938 kB / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1823, allocations: 0 / 474.3 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004985/0.1828, allocations: 165 kB / 474.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.1829, allocations: 92.97 kB / 474.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.1829, allocations: 4 kB / 474.5 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.934e-05/0.183, allocations: 7.938 kB / 474.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.918e-05/0.1831, allocations: 11.92 kB / 474.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.1831, allocations: 4 kB / 474.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.1833, allocations: 109.6 kB / 474.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1833, allocations: 0 / 474.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000419/0.1837, allocations: 20 kB / 474.7 MB, free: 8.262 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001447/0.1839, allocations: 103.2 kB / 474.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003222/0.1842, allocations: 71.84 kB / 474.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1842, allocations: 0 / 474.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.1844, allocations: 39.97 kB / 474.9 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.1847, allocations: 8 kB / 474.9 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000778/0.1855, allocations: 283.5 kB / 475.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.1859, allocations: 0.7004 MB / 475.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.179e-05/0.186, allocations: 16.48 kB / 475.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.1861, allocations: 19.44 kB / 475.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1861, allocations: 0 / 475.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of Templates: time 0.00495/0.1911, allocations: 0.8387 MB / 476.7 MB, free: 6.137 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches