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.00174/0.00174, allocations: 120.1 kB / 18.49 MB, free: 4.559 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.002235/0.002235, allocations: 215 kB / 21.45 MB, free: 1.613 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.522/1.522, allocations: 230.6 MB / 254.8 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.2595/0.2595, allocations: 46.93 MB / 357.8 MB, free: 10.32 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 75.88 kB / 0.4916 GB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1489, allocations: 65.97 MB / 0.556 GB, free: 5.887 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003241/0.1521, allocations: 1.715 MB / 0.5577 GB, free: 4.156 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.1533, allocations: 0.5859 MB / 0.5583 GB, free: 3.566 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.706e-05/0.1534, allocations: 4 kB / 0.5583 GB, free: 3.562 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.1535, allocations: 11.86 kB / 0.5583 GB, free: 3.551 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.337e-05/0.1536, allocations: 23.81 kB / 0.5583 GB, free: 3.527 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000337/0.154, allocations: 63.81 kB / 0.5584 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.1542, allocations: 123.6 kB / 0.5585 GB, free: 3.344 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.1543, allocations: 25.11 kB / 0.5585 GB, free: 3.32 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.1545, allocations: 55.78 kB / 0.5586 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.1546, allocations: 51.7 kB / 0.5586 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.1546, allocations: 12 kB / 0.5586 GB, free: 3.203 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.149e-05/0.1547, allocations: 16 kB / 0.5587 GB, free: 3.188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.251e-05/0.1548, allocations: 31.89 kB / 0.5587 GB, free: 3.156 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.343e-05/0.1548, allocations: 51.73 kB / 0.5587 GB, free: 3.105 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.1551, allocations: 123.5 kB / 0.5589 GB, free: 2.984 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.1551, allocations: 0 / 0.5589 GB, free: 2.984 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1551, allocations: 0 / 0.5589 GB, free: 2.984 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.1551, allocations: 0 / 0.5589 GB, free: 2.984 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.0008361/0.1559, allocations: 434.8 kB / 0.5593 GB, free: 2.512 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.156, allocations: 8.031 kB / 0.5593 GB, free: 2.504 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.731e-05/0.156, allocations: 4.188 kB / 0.5593 GB, free: 2.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.548e-05/0.156, allocations: 42.73 kB / 0.5593 GB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.1562, allocations: 24.88 kB / 0.5593 GB, free: 2.426 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.1565, allocations: 212.7 kB / 0.5595 GB, free: 2.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.1565, allocations: 8.125 kB / 0.5596 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.398e-05/0.1566, allocations: 12 kB / 0.5596 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.1568, allocations: 89.64 kB / 0.5597 GB, free: 2.066 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1568, allocations: 0 / 0.5597 GB, free: 2.066 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.1568, allocations: 8 kB / 0.5597 GB, free: 2.059 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1569, allocations: 0 / 0.5597 GB, free: 2.059 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.157, allocations: 51.91 kB / 0.5597 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006674/0.1577, allocations: 396.5 kB / 0.5601 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.1578, allocations: 62.64 kB / 0.5601 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.735e-05/0.1579, allocations: 24.84 kB / 0.5602 GB, free: 1.473 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.158, allocations: 4 kB / 0.5602 GB, free: 1.469 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002186/0.1582, allocations: 99.28 kB / 0.5603 GB, free: 1.359 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.472e-06/0.1582, allocations: 0 / 0.5603 GB, free: 1.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003874/0.1586, allocations: 133.8 kB / 0.5604 GB, free: 1.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.1586, allocations: 51.41 kB / 0.5604 GB, free: 1.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.1588, allocations: 148.2 kB / 0.5606 GB, free: 1.008 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.1588, allocations: 37.64 kB / 0.5606 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.139e-05/0.1589, allocations: 108.1 kB / 0.5607 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/0.1589, allocations: 23.86 kB / 0.5607 GB, free: 0.832 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.616e-05/0.159, allocations: 29.7 kB / 0.5608 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1591, allocations: 326.8 kB / 0.5611 GB, free: 480 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.038e-05/0.1592, allocations: 27.98 kB / 0.5611 GB, free: 452 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1593, allocations: 85.47 kB / 0.5612 GB, free: 340 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.1595, allocations: 119.6 kB / 0.5613 GB, free: 192 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1595, allocations: 0 / 0.5613 GB, free: 192 kB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002776/0.1598, allocations: 153.3 kB / 0.5615 GB, free: 32 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1598, allocations: 10.03 kB / 0.5615 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1598, allocations: 0 / 0.5615 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.1599, allocations: 4 kB / 0.5615 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.16, allocations: 27.97 kB / 0.5615 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.16, allocations: 0 / 0.5615 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.613e-05/0.1601, allocations: 12.17 kB / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.1601, allocations: 12 kB / 0.5615 GB, free: 15.96 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.0001271/0.1602, allocations: 135.9 kB / 0.5617 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.1603, allocations: 11.89 kB / 0.5617 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.1603, allocations: 12.72 kB / 0.5617 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1603, allocations: 0 / 0.5617 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1603, allocations: 0 / 0.5617 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1603, allocations: 0 / 0.5617 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/0.1605, allocations: 209.5 kB / 0.5619 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1605, allocations: 7.938 kB / 0.5619 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.1606, allocations: 15.98 kB / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1606, allocations: 0 / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.1607, allocations: 7.938 kB / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1607, allocations: 0 / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1607, allocations: 3.984 kB / 0.5619 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003778/0.161, allocations: 169 kB / 0.5621 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.512e-05/0.1611, allocations: 97.08 kB / 0.5622 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.1611, allocations: 0 / 0.5622 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.215e-05/0.1612, allocations: 4.094 kB / 0.5622 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.1613, allocations: 15.86 kB / 0.5622 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.1613, allocations: 4 kB / 0.5622 GB, free: 15.19 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.313e-05/0.1614, allocations: 114.2 kB / 0.5623 GB, free: 15.08 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1614, allocations: 0 / 0.5623 GB, free: 15.08 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002576/0.1616, allocations: 20 kB / 0.5623 GB, free: 15.06 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.000731/0.1624, allocations: 0.706 MB / 0.563 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002576/0.1626, allocations: 71.83 kB / 0.5631 GB, free: 14.26 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1626, allocations: 0 / 0.5631 GB, free: 14.26 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.248e-05/0.1627, allocations: 32.48 kB / 0.5631 GB, free: 14.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.1629, allocations: 19.98 kB / 0.5631 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.1651, allocations: 1.703 MB / 0.5648 GB, free: 12.37 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.1654, allocations: 0.7002 MB / 0.5655 GB, free: 11.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.895e-05/0.1655, allocations: 16.41 kB / 0.5655 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.118e-05/0.1656, allocations: 31.38 kB / 0.5655 GB, free: 11.59 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1656, allocations: 4 kB / 0.5655 GB, free: 11.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.1855, allocations: 2.513 MB / 0.568 GB, free: 9.164 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.323/8.509, allocations: 12 kB / 0.568 GB, free: 9.152 MB / 430.1 MB " [Timeout remaining time 651] (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.66907910903683]