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.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.001843/0.001843, allocations: 114.3 kB / 18.49 MB, free: 4.539 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.002105/0.002105, allocations: 219 kB / 21.46 MB, free: 1.586 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.539/1.539, 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2401/0.2401, allocations: 44.91 MB / 355.8 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 63.91 kB / 0.4885 GB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1362, allocations: 65.42 MB / 0.5524 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003418/0.1396, allocations: 1.702 MB / 0.5541 GB, free: 8.438 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001543/0.1411, allocations: 0.5939 MB / 0.5547 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.1413, allocations: 0 / 0.5547 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.1414, allocations: 11.86 kB / 0.5547 GB, free: 7.828 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.659e-05/0.1415, allocations: 19.8 kB / 0.5547 GB, free: 7.809 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/0.1419, allocations: 67.81 kB / 0.5548 GB, free: 7.742 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002584/0.1421, allocations: 119.6 kB / 0.5549 GB, free: 7.625 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.1423, allocations: 33.33 kB / 0.5549 GB, free: 7.594 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.1425, allocations: 47.84 kB / 0.5549 GB, free: 7.547 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.1427, allocations: 51.7 kB / 0.555 GB, free: 7.496 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.1428, allocations: 12 kB / 0.555 GB, free: 7.484 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.593e-05/0.1428, allocations: 20 kB / 0.555 GB, free: 7.465 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.919e-05/0.1429, allocations: 31.89 kB / 0.5551 GB, free: 7.434 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.34e-05/0.143, allocations: 47.73 kB / 0.5551 GB, free: 7.387 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003053/0.1433, allocations: 127.5 kB / 0.5552 GB, free: 7.262 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1433, allocations: 0 / 0.5552 GB, free: 7.262 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1433, allocations: 4 kB / 0.5552 GB, free: 7.258 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.1433, allocations: 0 / 0.5552 GB, free: 7.258 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.001049/0.1444, allocations: 422.9 kB / 0.5556 GB, free: 6.797 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.1444, allocations: 8.031 kB / 0.5556 GB, free: 6.789 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.107e-05/0.1445, allocations: 12.19 kB / 0.5557 GB, free: 6.777 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.381e-05/0.1445, allocations: 42.73 kB / 0.5557 GB, free: 6.727 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002383/0.1447, allocations: 24.88 kB / 0.5557 GB, free: 6.703 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.1451, allocations: 214 kB / 0.5559 GB, free: 6.457 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.1451, allocations: 12.12 kB / 0.5559 GB, free: 6.445 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.1451, allocations: 8 kB / 0.5559 GB, free: 6.438 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.1454, allocations: 95.69 kB / 0.556 GB, free: 6.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.1454, allocations: 0 / 0.556 GB, free: 6.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.1454, allocations: 4 kB / 0.556 GB, free: 6.336 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.1454, allocations: 4 kB / 0.556 GB, free: 6.332 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.1456, allocations: 55.84 kB / 0.5561 GB, free: 6.277 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007242/0.1463, allocations: 388.5 kB / 0.5565 GB, free: 5.848 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.1465, allocations: 58.5 kB / 0.5565 GB, free: 5.781 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.801e-05/0.1466, allocations: 28.97 kB / 0.5565 GB, free: 5.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.1466, allocations: 8 kB / 0.5566 GB, free: 5.742 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.1468, allocations: 99.28 kB / 0.5566 GB, free: 5.633 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.553e-06/0.1468, allocations: 0 / 0.5566 GB, free: 5.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004036/0.1472, allocations: 137.4 kB / 0.5568 GB, free: 5.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.1473, allocations: 55.41 kB / 0.5568 GB, free: 5.426 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.1474, allocations: 151.7 kB / 0.557 GB, free: 5.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.1475, allocations: 25.7 kB / 0.557 GB, free: 5.238 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.852e-05/0.1475, allocations: 108 kB / 0.5571 GB, free: 5.129 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.1476, allocations: 23.94 kB / 0.5571 GB, free: 5.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.381e-05/0.1477, allocations: 33.7 kB / 0.5572 GB, free: 5.066 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1478, allocations: 326.8 kB / 0.5575 GB, free: 4.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.546e-05/0.1479, allocations: 19.98 kB / 0.5575 GB, free: 4.719 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.148, allocations: 87.7 kB / 0.5576 GB, free: 4.605 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.1482, allocations: 119.6 kB / 0.5577 GB, free: 4.461 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.1482, allocations: 0 / 0.5577 GB, free: 4.461 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002903/0.1485, allocations: 153.5 kB / 0.5578 GB, free: 4.305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.1485, allocations: 4 kB / 0.5578 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1486, allocations: 4 kB / 0.5578 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1486, allocations: 4 kB / 0.5578 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.1487, allocations: 23.92 kB / 0.5579 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.1487, allocations: 4 kB / 0.5579 GB, free: 4.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.641e-05/0.1488, allocations: 15.89 kB / 0.5579 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.1488, allocations: 4 kB / 0.5579 GB, free: 4.246 MB / 414.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.0001389/0.1489, allocations: 136.4 kB / 0.558 GB, free: 4.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.149, allocations: 15.89 kB / 0.558 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.634e-05/0.149, allocations: 8.719 kB / 0.558 GB, free: 4.078 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.149, allocations: 4 kB / 0.558 GB, free: 4.074 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.149, allocations: 3.938 kB / 0.5581 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.149, allocations: 0 / 0.5581 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.1492, allocations: 205.6 kB / 0.5582 GB, free: 3.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1492, allocations: 3.938 kB / 0.5583 GB, free: 3.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.1494, allocations: 15.98 kB / 0.5583 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.1494, allocations: 0 / 0.5583 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.1494, allocations: 8 kB / 0.5583 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1494, allocations: 0 / 0.5583 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1494, allocations: 0 / 0.5583 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004438/0.1498, allocations: 164.9 kB / 0.5584 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.1499, allocations: 100.9 kB / 0.5585 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.15, allocations: 4 kB / 0.5585 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.52e-05/0.15, allocations: 4 kB / 0.5585 GB, free: 3.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.1501, allocations: 15.98 kB / 0.5586 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.1501, allocations: 8.094 kB / 0.5586 GB, free: 3.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.15e-05/0.1502, allocations: 110.1 kB / 0.5587 GB, free: 3.359 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1502, allocations: 0 / 0.5587 GB, free: 3.359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1504, allocations: 20 kB / 0.5587 GB, free: 3.34 MB / 414.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.0006905/0.1511, allocations: 0.7099 MB / 0.5594 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002577/0.1514, allocations: 83.95 kB / 0.5595 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1514, allocations: 0 / 0.5595 GB, free: 2.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.828e-05/0.1514, allocations: 27.98 kB / 0.5595 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.1517, allocations: 19.92 kB / 0.5595 GB, free: 2.473 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.1539, allocations: 1.704 MB / 0.5612 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.1542, allocations: 0.708 MB / 0.5619 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.781e-05/0.1543, allocations: 8.422 kB / 0.5619 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.969e-05/0.1544, allocations: 39.42 kB / 0.5619 GB, free: 15.86 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1544, allocations: 0 / 0.5619 GB, free: 15.86 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/0.1748, allocations: 2.514 MB / 0.5644 GB, free: 13.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.346/8.521, allocations: 14.17 kB / 0.5644 GB, free: 13.42 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.774443881993648]