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.00131/0.00131, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001432/0.001432, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.527/1.527, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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.2726/0.2726, allocations: 46.92 MB / 357.1 MB, free: 10.3 MB / 286.1 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 0.002115/0.002115, allocations: 67.89 kB / 0.4909 GB, free: 7.961 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1472, allocations: 65.98 MB / 0.5554 GB, free: 5.852 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003466/0.1506, allocations: 1.698 MB / 0.557 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1519, allocations: 0.5899 MB / 0.5576 GB, free: 3.543 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.347e-05/0.1519, allocations: 7.938 kB / 0.5576 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.152, allocations: 15.8 kB / 0.5576 GB, free: 3.52 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.327e-05/0.1521, allocations: 15.86 kB / 0.5576 GB, free: 3.504 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.1524, allocations: 67.81 kB / 0.5577 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.1526, allocations: 115.6 kB / 0.5578 GB, free: 3.324 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1528, allocations: 33.05 kB / 0.5578 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.1529, allocations: 59.77 kB / 0.5579 GB, free: 3.234 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.153, allocations: 47.78 kB / 0.5579 GB, free: 3.188 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.1531, allocations: 15.98 kB / 0.558 GB, free: 3.172 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.05e-05/0.1531, allocations: 19.98 kB / 0.558 GB, free: 3.152 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.592e-05/0.1532, allocations: 23.92 kB / 0.558 GB, free: 3.129 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.521e-05/0.1533, allocations: 47.73 kB / 0.558 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002165/0.1535, allocations: 127.5 kB / 0.5582 GB, free: 2.957 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1535, allocations: 0 / 0.5582 GB, free: 2.957 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1535, allocations: 3.938 kB / 0.5582 GB, free: 2.953 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.978e-06/0.1535, allocations: 0 / 0.5582 GB, free: 2.953 MB / 414.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.000856/0.1543, allocations: 430.9 kB / 0.5586 GB, free: 2.484 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1544, allocations: 12.02 kB / 0.5586 GB, free: 2.473 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.802e-05/0.1544, allocations: 42.75 kB / 0.5586 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.1547, allocations: 20.88 kB / 0.5587 GB, free: 2.402 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.155, allocations: 208.8 kB / 0.5589 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.155, allocations: 4.375 kB / 0.5589 GB, free: 2.156 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.155, allocations: 15.94 kB / 0.5589 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.1553, allocations: 99.69 kB / 0.559 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1553, allocations: 0 / 0.559 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.495e-05/0.1553, allocations: 0 / 0.559 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.1553, allocations: 4 kB / 0.559 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/0.1555, allocations: 51.97 kB / 0.559 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007699/0.1562, allocations: 388.5 kB / 0.5594 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.1564, allocations: 62.55 kB / 0.5594 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.56e-05/0.1565, allocations: 28.92 kB / 0.5595 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.1565, allocations: 0 / 0.5595 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.1568, allocations: 103.3 kB / 0.5596 GB, free: 1.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.913e-06/0.1568, allocations: 0 / 0.5596 GB, free: 1.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004096/0.1572, allocations: 129.8 kB / 0.5597 GB, free: 1.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.1573, allocations: 55.41 kB / 0.5598 GB, free: 1.141 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.1574, allocations: 145.9 kB / 0.5599 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.1575, allocations: 29.64 kB / 0.5599 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.695e-05/0.1575, allocations: 112.1 kB / 0.56 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/0.1576, allocations: 23.84 kB / 0.56 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.601e-05/0.1576, allocations: 37.7 kB / 0.5601 GB, free: 0.7734 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.1578, allocations: 326.8 kB / 0.5604 GB, free: 456 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.563e-05/0.1579, allocations: 19.98 kB / 0.5604 GB, free: 436 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.158, allocations: 91.58 kB / 0.5605 GB, free: 316 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.1582, allocations: 127.6 kB / 0.5606 GB, free: 160 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1582, allocations: 0 / 0.5606 GB, free: 160 kB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002832/0.1585, allocations: 153.3 kB / 0.5608 GB, free: 0 / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/0.1585, allocations: 5.766 kB / 0.5608 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1585, allocations: 4 kB / 0.5608 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.1585, allocations: 4 kB / 0.5608 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.1587, allocations: 20.16 kB / 0.5608 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.1587, allocations: 11.98 kB / 0.5608 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.903e-05/0.1588, allocations: 11.95 kB / 0.5608 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.1588, allocations: 7.938 kB / 0.5608 GB, free: 15.94 MB / 430.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.0001302/0.1589, allocations: 129.8 kB / 0.561 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.1589, allocations: 15.89 kB / 0.561 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.899e-05/0.159, allocations: 8.719 kB / 0.561 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.159, allocations: 4 kB / 0.561 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.159, allocations: 0 / 0.561 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.159, allocations: 4 kB / 0.561 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000216/0.1592, allocations: 209.5 kB / 0.5612 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1592, allocations: 0 / 0.5612 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.1593, allocations: 19.88 kB / 0.5612 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1593, allocations: 0 / 0.5612 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.1593, allocations: 3.984 kB / 0.5612 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.1593, allocations: 0 / 0.5612 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1593, allocations: 3.938 kB / 0.5612 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003784/0.1597, allocations: 172.9 kB / 0.5614 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.719e-05/0.1598, allocations: 89.03 kB / 0.5615 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.1598, allocations: 4 kB / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.263e-05/0.1599, allocations: 4.094 kB / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.1599, allocations: 11.92 kB / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.1599, allocations: 8 kB / 0.5615 GB, free: 15.17 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.16, allocations: 110.2 kB / 0.5616 GB, free: 15.06 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.16, allocations: 0 / 0.5616 GB, free: 15.06 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002334/0.1603, allocations: 20 kB / 0.5616 GB, free: 15.04 MB / 430.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.0007131/0.161, allocations: 0.7061 MB / 0.5623 GB, free: 14.31 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002425/0.1612, allocations: 76.22 kB / 0.5624 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1612, allocations: 4.125 kB / 0.5624 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.791e-05/0.1613, allocations: 31.92 kB / 0.5624 GB, free: 14.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/0.1615, allocations: 15.98 kB / 0.5624 GB, free: 14.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.1638, allocations: 1.702 MB / 0.5641 GB, free: 12.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.1641, allocations: 0.7002 MB / 0.5648 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.124e-05/0.1642, allocations: 24.39 kB / 0.5648 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.655e-05/0.1643, allocations: 39.36 kB / 0.5648 GB, free: 11.56 MB / 430.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1643, allocations: 7.938 kB / 0.5648 GB, free: 11.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.193, allocations: 2.466 MB / 0.5672 GB, free: 9.156 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.249, allocations: 3.938 kB / 0.5673 GB, free: 9.152 MB / 430.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/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: 11.3524725579191]