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: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.001808/0.001808, allocations: 194 kB / 18.12 MB, free: 5.383 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.404/1.404, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.2295/0.2295, allocations: 44.18 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 60.73 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1301, allocations: 60.82 MB / 468.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003051/0.1332, allocations: 1.713 MB / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008595/0.1341, allocations: 0.526 MB / 470.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.462e-05/0.1342, allocations: 4 kB / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.1343, allocations: 3.938 kB / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.868e-05/0.1344, allocations: 19.84 kB / 470.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.1346, allocations: 51.95 kB / 470.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.1348, allocations: 107.6 kB / 471 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.135, allocations: 33.36 kB / 471.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.1351, allocations: 35.86 kB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.1353, allocations: 47.77 kB / 471.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.309e-05/0.1353, allocations: 8 kB / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.532e-05/0.1353, allocations: 8 kB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.446e-05/0.1354, allocations: 19.91 kB / 471.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.899e-05/0.1355, allocations: 39.8 kB / 471.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.1357, allocations: 103.9 kB / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.1357, allocations: 0 / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1357, allocations: 3.938 kB / 471.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.1358, allocations: 0 / 471.3 MB, free: 12.02 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.0008935/0.1367, allocations: 419.1 kB / 471.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.1367, allocations: 12.03 kB / 471.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.736e-05/0.1368, allocations: 38.73 kB / 471.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.342e-05/0.1369, allocations: 16.75 kB / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.1371, allocations: 204.2 kB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.1372, allocations: 8.375 kB / 472 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.53e-05/0.1372, allocations: 8.375 kB / 472 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.1375, allocations: 100.9 kB / 472.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1376, allocations: 0 / 472.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.1376, allocations: 7.984 kB / 472.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.1376, allocations: 8 kB / 472.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.1378, allocations: 47.97 kB / 472.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006101/0.1384, allocations: 384.3 kB / 472.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.1386, allocations: 62.62 kB / 472.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.828e-05/0.1387, allocations: 20.92 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.1387, allocations: 7.984 kB / 472.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.1389, allocations: 95.28 kB / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.1389, allocations: 4 kB / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003421/0.1393, allocations: 129.5 kB / 472.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.1393, allocations: 59.34 kB / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1395, allocations: 135.9 kB / 473.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/0.1395, allocations: 29.7 kB / 473.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.1396, allocations: 111.9 kB / 473.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.1396, allocations: 23.7 kB / 473.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/0.1397, allocations: 41.7 kB / 473.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1398, allocations: 318.8 kB / 473.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.148e-05/0.1399, allocations: 23.98 kB / 473.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.14, allocations: 87.59 kB / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.1402, allocations: 119.6 kB / 473.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1402, allocations: 7.938 kB / 473.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002548/0.1404, allocations: 137.4 kB / 473.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1405, allocations: 8 kB / 474 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1405, allocations: 0 / 474 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1405, allocations: 7.938 kB / 474 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.1406, allocations: 19.98 kB / 474 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.1406, allocations: 8.219 kB / 474 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.835e-05/0.1407, allocations: 19.89 kB / 474 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.1407, allocations: 12.03 kB / 474 MB, free: 9.043 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.0001073/0.1409, allocations: 125.8 kB / 474.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.1409, allocations: 8.281 kB / 474.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.93e-05/0.1409, allocations: 12.7 kB / 474.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1409, allocations: 7.938 kB / 474.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1409, allocations: 0 / 474.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.141, allocations: 7.938 kB / 474.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.1411, allocations: 209.5 kB / 474.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1411, allocations: 0 / 474.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.1412, allocations: 11.94 kB / 474.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1412, allocations: 4 kB / 474.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.1413, allocations: 3.984 kB / 474.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1413, allocations: 3.938 kB / 474.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1413, allocations: 0 / 474.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.1416, allocations: 172.8 kB / 474.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.845e-05/0.1417, allocations: 85.05 kB / 474.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.404e-05/0.1417, allocations: 0 / 474.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.096e-05/0.1418, allocations: 15.92 kB / 474.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.1418, allocations: 4 kB / 474.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.1418, allocations: 3.984 kB / 474.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.582e-05/0.1419, allocations: 105.5 kB / 474.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1419, allocations: 0 / 474.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1422, allocations: 20 kB / 474.8 MB, free: 8.164 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.0006388/0.1428, allocations: 0.7027 MB / 475.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002085/0.143, allocations: 80.41 kB / 475.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.143, allocations: 8 kB / 475.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.993e-05/0.1431, allocations: 35.92 kB / 475.6 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.1433, allocations: 19.92 kB / 475.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.1452, allocations: 1.659 MB / 477.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.1456, allocations: 0.7083 MB / 478 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.778e-05/0.1456, allocations: 4.562 kB / 478 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.862e-05/0.1457, allocations: 35.42 kB / 478.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1457, allocations: 0 / 478.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3227/0.4684, allocations: 2.108 MB / 480.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003431/0.4688, allocations: 191.2 kB / 480.4 MB, free: 2.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.854/2.323, allocations: 3.938 kB / 480.4 MB, free: 2.438 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) 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) Reference file matches