Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001288/0.001288, allocations: 117 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 212.7 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 230.5 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2147/0.2147, allocations: 46.92 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002148/0.002148, allocations: 83.88 kB / 0.4916 GB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1182, allocations: 66.04 MB / 0.5561 GB, free: 5.551 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002877/0.121, allocations: 1.694 MB / 0.5578 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1221, allocations: 0.5899 MB / 0.5584 GB, free: 3.242 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.774e-05/0.1221, allocations: 7.875 kB / 0.5584 GB, free: 3.234 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 9.57e-05/0.1222, allocations: 11.86 kB / 0.5584 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.393e-05/0.1223, allocations: 15.81 kB / 0.5584 GB, free: 3.207 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.1226, allocations: 71.8 kB / 0.5585 GB, free: 3.137 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001985/0.1228, allocations: 119.7 kB / 0.5586 GB, free: 3.02 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.1229, allocations: 29.11 kB / 0.5586 GB, free: 2.992 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.123, allocations: 55.77 kB / 0.5587 GB, free: 2.938 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.1231, allocations: 47.77 kB / 0.5587 GB, free: 2.891 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.075e-05/0.1232, allocations: 12 kB / 0.5587 GB, free: 2.879 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.677e-05/0.1232, allocations: 20 kB / 0.5587 GB, free: 2.859 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.176e-05/0.1233, allocations: 27.91 kB / 0.5588 GB, free: 2.832 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.199e-05/0.1233, allocations: 47.73 kB / 0.5588 GB, free: 2.785 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.1235, allocations: 127.4 kB / 0.5589 GB, free: 2.66 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1235, allocations: 0 / 0.5589 GB, free: 2.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1235, allocations: 0 / 0.5589 GB, free: 2.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1235, allocations: 4 kB / 0.5589 GB, free: 2.656 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.0007465/0.1243, allocations: 437.6 kB / 0.5594 GB, free: 2.184 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1243, allocations: 12.03 kB / 0.5594 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.759e-05/0.1243, allocations: 192 / 0.5594 GB, free: 2.172 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.417e-05/0.1244, allocations: 38.75 kB / 0.5594 GB, free: 2.125 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001879/0.1246, allocations: 20.88 kB / 0.5594 GB, free: 2.105 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.1248, allocations: 212.8 kB / 0.5596 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.1248, allocations: 16.12 kB / 0.5596 GB, free: 1.844 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.1248, allocations: 11.94 kB / 0.5597 GB, free: 1.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.125, allocations: 94.98 kB / 0.5597 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1251, allocations: 0 / 0.5597 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.1251, allocations: 4 kB / 0.5598 GB, free: 1.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1251, allocations: 4 kB / 0.5598 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001423/0.1252, allocations: 51.95 kB / 0.5598 GB, free: 1.676 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005734/0.1258, allocations: 392.5 kB / 0.5602 GB, free: 1.242 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.1259, allocations: 62.48 kB / 0.5602 GB, free: 1.172 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.974e-05/0.126, allocations: 28.98 kB / 0.5603 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.126, allocations: 3.938 kB / 0.5603 GB, free: 1.137 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.1262, allocations: 99.34 kB / 0.5604 GB, free: 1.027 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.1262, allocations: 0 / 0.5604 GB, free: 1.027 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003432/0.1266, allocations: 125.5 kB / 0.5605 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.1266, allocations: 55.41 kB / 0.5605 GB, free: 0.832 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.1268, allocations: 153.2 kB / 0.5607 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.1268, allocations: 29.7 kB / 0.5607 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.471e-05/0.1269, allocations: 112.1 kB / 0.5608 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.1269, allocations: 19.84 kB / 0.5608 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.04e-05/0.1269, allocations: 33.72 kB / 0.5609 GB, free: 480 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1271, allocations: 322.8 kB / 0.5612 GB, free: 148 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.303e-05/0.1272, allocations: 23.98 kB / 0.5612 GB, free: 124 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.1273, allocations: 91.58 kB / 0.5613 GB, free: 4 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.1275, allocations: 123.6 kB / 0.5614 GB, free: 15.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1275, allocations: 0 / 0.5614 GB, free: 15.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002697/0.1278, allocations: 149.5 kB / 0.5615 GB, free: 15.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.1278, allocations: 4 kB / 0.5616 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.1278, allocations: 4 kB / 0.5616 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.1278, allocations: 4 kB / 0.5616 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.1279, allocations: 24.36 kB / 0.5616 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1279, allocations: 7.938 kB / 0.5616 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.1e-05/0.128, allocations: 7.953 kB / 0.5616 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.128, allocations: 7.984 kB / 0.5616 GB, free: 15.64 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.000105/0.1281, allocations: 128.3 kB / 0.5617 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.581e-05/0.1281, allocations: 19.89 kB / 0.5617 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.1282, allocations: 12.72 kB / 0.5618 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1282, allocations: 4 kB / 0.5618 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1282, allocations: 0 / 0.5618 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1282, allocations: 4.078 kB / 0.5618 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001879/0.1284, allocations: 209.5 kB / 0.562 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1284, allocations: 7.922 kB / 0.562 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.252e-05/0.1285, allocations: 12 kB / 0.562 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1285, allocations: 0 / 0.562 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.1285, allocations: 7.984 kB / 0.562 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1285, allocations: 7.938 kB / 0.562 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1285, allocations: 0 / 0.562 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.1288, allocations: 168.9 kB / 0.5622 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.524e-05/0.1289, allocations: 93.03 kB / 0.5623 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.1289, allocations: 4 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.477e-05/0.129, allocations: 3.984 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.129, allocations: 12.06 kB / 0.5623 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.129, allocations: 7.984 kB / 0.5623 GB, free: 14.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.844e-05/0.1291, allocations: 103.3 kB / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1291, allocations: 0 / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002163/0.1293, allocations: 20 kB / 0.5624 GB, free: 14.74 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.0006249/0.1299, allocations: 0.71 MB / 0.5631 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002064/0.1301, allocations: 75.84 kB / 0.5632 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1301, allocations: 0 / 0.5632 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.265e-05/0.1302, allocations: 31.92 kB / 0.5632 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.1304, allocations: 21.64 kB / 0.5632 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.1323, allocations: 1.706 MB / 0.5649 GB, free: 12.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.1327, allocations: 0.708 MB / 0.5656 GB, free: 11.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.39e-05/0.1327, allocations: 12.41 kB / 0.5656 GB, free: 11.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.783e-05/0.1328, allocations: 35.42 kB / 0.5656 GB, free: 11.26 MB / 430.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1328, allocations: 0 / 0.5656 GB, free: 11.26 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.1516, allocations: 2.503 MB / 0.5681 GB, free: 8.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.818/7.969, allocations: 64 / 0.5681 GB, free: 8.82 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 10.87619869899936]