Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009754/0.0009754, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8593/0.8593, allocations: 177.2 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2282/0.2282, allocations: 34.25 MB / 294.9 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 442.2 MB, free: 1.688 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.893e-05/2.063e-05, allocations: 2.281 kB / 442.2 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002219/0.002239, allocations: 1.661 MB / 443.8 MB, free: 12 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1631/0.1654, allocations: 0.5606 MB / 444.4 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.16e-05/0.1654, allocations: 0 / 444.4 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 9.303e-05/0.1655, allocations: 17.98 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.676e-05/0.1656, allocations: 19.58 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.1658, allocations: 70.58 kB / 444.5 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001186/0.166, allocations: 117.8 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.1661, allocations: 23.39 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001408/0.1662, allocations: 78.88 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.849e-05/0.1663, allocations: 32.19 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.1663, allocations: 11.75 kB / 444.7 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.713e-05/0.1664, allocations: 18.44 kB / 444.8 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.001e-05/0.1664, allocations: 30.3 kB / 444.8 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.347e-05/0.1665, allocations: 31.36 kB / 444.8 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.1666, allocations: 132.9 kB / 444.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1666, allocations: 0 / 444.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1666, allocations: 0 / 444.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.1666, allocations: 0 / 444.9 MB, free: 43.14 MB / 410.7 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.0004965/0.1671, allocations: 375.5 kB / 445.3 MB, free: 42.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1671, allocations: 10.66 kB / 445.3 MB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.376e-05/0.1672, allocations: 40.22 kB / 445.4 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.1673, allocations: 26.42 kB / 445.4 MB, free: 42.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.1674, allocations: 148 kB / 445.5 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.1674, allocations: 19.27 kB / 445.6 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.1675, allocations: 8.281 kB / 445.6 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001366/0.1676, allocations: 101.7 kB / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1676, allocations: 0 / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1676, allocations: 6.969 kB / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1676, allocations: 0 / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.095e-05/0.1677, allocations: 52.2 kB / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003404/0.168, allocations: 337.3 kB / 446 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.886e-05/0.1681, allocations: 56.69 kB / 446.1 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.495e-05/0.1682, allocations: 30.78 kB / 446.1 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.1682, allocations: 0 / 446.1 MB, free: 42.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001198/0.1683, allocations: 106.2 kB / 446.2 MB, free: 42.28 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 9.42e-07/0.1683, allocations: 0 / 446.2 MB, free: 42.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002138/0.1685, allocations: 127.5 kB / 446.4 MB, free: 42.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/0.1685, allocations: 62 kB / 446.4 MB, free: 42.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.286e-05/0.1686, allocations: 141.7 kB / 446.6 MB, free: 42.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.1686, allocations: 31.64 kB / 446.6 MB, free: 42.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.467e-05/0.1687, allocations: 112.6 kB / 446.7 MB, free: 41.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.1687, allocations: 22.38 kB / 446.7 MB, free: 41.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/0.1687, allocations: 32.09 kB / 446.8 MB, free: 41.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.69e-05/0.1687, allocations: 320.5 kB / 447.1 MB, free: 41.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.074e-05/0.1688, allocations: 31.08 kB / 447.1 MB, free: 41.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.293e-05/0.1688, allocations: 91.08 kB / 447.2 MB, free: 41.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.528e-05/0.1689, allocations: 119.3 kB / 447.3 MB, free: 41.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1689, allocations: 0 / 447.3 MB, free: 41.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000131/0.1691, allocations: 147.7 kB / 447.4 MB, free: 41.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.1691, allocations: 5.594 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1691, allocations: 2.938 kB / 447.5 MB, free: 41.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1691, allocations: 6.812 kB / 447.5 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.118e-05/0.1692, allocations: 27.73 kB / 447.5 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.1692, allocations: 6.562 kB / 447.5 MB, free: 41.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.649e-05/0.1692, allocations: 16.45 kB / 447.5 MB, free: 41.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.1692, allocations: 6.219 kB / 447.5 MB, free: 41.38 MB / 410.7 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 5.4e-05/0.1693, allocations: 125.7 kB / 447.6 MB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.1693, allocations: 13.67 kB / 447.7 MB, free: 41.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.952e-05/0.1693, allocations: 18.62 kB / 447.7 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1693, allocations: 3.938 kB / 447.7 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1693, allocations: 0 / 447.7 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1693, allocations: 2.594 kB / 447.7 MB, free: 41.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.158e-05/0.1694, allocations: 166.8 kB / 447.8 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1694, allocations: 0 / 447.8 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.777e-05/0.1694, allocations: 15.33 kB / 447.9 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1694, allocations: 2.656 kB / 447.9 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.1694, allocations: 0 / 447.9 MB, free: 41.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1694, allocations: 7.938 kB / 447.9 MB, free: 41.08 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1694, allocations: 4.719 kB / 447.9 MB, free: 41.08 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.1696, allocations: 169.3 kB / 448 MB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.093e-05/0.1696, allocations: 10.55 kB / 448 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.1697, allocations: 4.125 kB / 448.1 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.715e-05/0.1697, allocations: 13.84 kB / 448.1 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.1697, allocations: 6.047 kB / 448.1 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.1697, allocations: 2.719 kB / 448.1 MB, free: 40.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.606e-05/0.1698, allocations: 116.4 kB / 448.2 MB, free: 40.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1698, allocations: 64 / 448.2 MB, free: 40.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001431/0.1699, allocations: 18.88 kB / 448.2 MB, free: 40.87 MB / 410.7 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.0002526/0.1701, allocations: 0.7148 MB / 448.9 MB, free: 40.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.1703, allocations: 72.95 kB / 449 MB, free: 40.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1703, allocations: 0 / 449 MB, free: 40.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.521e-05/0.1703, allocations: 34.47 kB / 449 MB, free: 40.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.1705, allocations: 20.09 kB / 449 MB, free: 40.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009557/0.1714, allocations: 1.666 MB / 450.7 MB, free: 38.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.337e-05/0.1715, allocations: 97.64 kB / 450.8 MB, free: 38.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.427e-05/0.1715, allocations: 12.55 kB / 450.8 MB, free: 38.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/0.1715, allocations: 33.89 kB / 450.9 MB, free: 38.68 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1715, allocations: 3.938 kB / 450.9 MB, free: 38.68 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.1874, allocations: 3.198 MB / 454.1 MB, free: 37.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.586/6.774, allocations: 6.906 kB / 454.1 MB, free: 37.7 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.636690764687955]