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.001597/0.001597, allocations: 112.2 kB / 21.22 MB, free: 0.7344 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.001932/0.001932, allocations: 208.4 kB / 24.52 MB, free: 4.141 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.508/1.508, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.2277/0.2277, allocations: 44.91 MB / 359.6 MB, free: 6.297 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.002176/0.002176, allocations: 71.89 kB / 0.4938 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3605, allocations: 65.47 MB / 0.5578 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003183/0.3637, allocations: 1.69 MB / 0.5594 GB, free: 6.074 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.3648, allocations: 0.6048 MB / 0.56 GB, free: 5.465 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.921e-05/0.3649, allocations: 7.938 kB / 0.56 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.365, allocations: 7.875 kB / 0.56 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.531e-05/0.3651, allocations: 19.8 kB / 0.5601 GB, free: 5.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.3654, allocations: 71.8 kB / 0.5601 GB, free: 5.359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.3656, allocations: 111.7 kB / 0.5602 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.3658, allocations: 27.12 kB / 0.5603 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.3659, allocations: 59.78 kB / 0.5603 GB, free: 5.164 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.3661, allocations: 47.77 kB / 0.5604 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.3661, allocations: 8 kB / 0.5604 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.142e-05/0.3661, allocations: 20 kB / 0.5604 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.075e-05/0.3662, allocations: 27.91 kB / 0.5604 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.414e-05/0.3663, allocations: 47.73 kB / 0.5605 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.3665, allocations: 131.4 kB / 0.5606 GB, free: 4.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.421e-05/0.3665, allocations: 4 kB / 0.5606 GB, free: 4.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3665, allocations: 0 / 0.5606 GB, free: 4.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3665, allocations: 0 / 0.5606 GB, free: 4.883 MB / 398.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.0007859/0.3673, allocations: 381.7 kB / 0.561 GB, free: 4.477 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3674, allocations: 8.031 kB / 0.561 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.571e-05/0.3674, allocations: 4.188 kB / 0.561 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.3674, allocations: 34.75 kB / 0.561 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.3676, allocations: 28.88 kB / 0.561 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.3679, allocations: 156.2 kB / 0.5612 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3679, allocations: 16.12 kB / 0.5612 GB, free: 4.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.341e-05/0.3679, allocations: 8 kB / 0.5612 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/0.3682, allocations: 89.64 kB / 0.5613 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3682, allocations: 0 / 0.5613 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.3682, allocations: 4 kB / 0.5613 GB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3682, allocations: 7.938 kB / 0.5613 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.3683, allocations: 47.97 kB / 0.5613 GB, free: 4.043 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006315/0.369, allocations: 367.5 kB / 0.5617 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.3691, allocations: 50.66 kB / 0.5617 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.365e-05/0.3692, allocations: 28.83 kB / 0.5618 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/0.3692, allocations: 8 kB / 0.5618 GB, free: 3.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.3694, allocations: 95.34 kB / 0.5619 GB, free: 3.438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.462e-06/0.3694, allocations: 3.938 kB / 0.5619 GB, free: 3.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003415/0.3698, allocations: 125.5 kB / 0.562 GB, free: 3.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.3698, allocations: 59.39 kB / 0.562 GB, free: 3.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.37, allocations: 148.2 kB / 0.5622 GB, free: 3.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.37, allocations: 33.7 kB / 0.5622 GB, free: 3.043 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.3701, allocations: 108.2 kB / 0.5623 GB, free: 2.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.413e-05/0.3701, allocations: 31.73 kB / 0.5624 GB, free: 2.902 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.619e-05/0.3702, allocations: 29.7 kB / 0.5624 GB, free: 2.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.3704, allocations: 322.8 kB / 0.5627 GB, free: 2.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.3704, allocations: 31.92 kB / 0.5627 GB, free: 2.512 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.3706, allocations: 82.39 kB / 0.5628 GB, free: 2.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.3708, allocations: 127.6 kB / 0.5629 GB, free: 2.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3708, allocations: 0 / 0.5629 GB, free: 2.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002683/0.371, allocations: 145.4 kB / 0.5631 GB, free: 2.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.3711, allocations: 8 kB / 0.5631 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3711, allocations: 0 / 0.5631 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3711, allocations: 4 kB / 0.5631 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.3712, allocations: 27.92 kB / 0.5631 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.3712, allocations: 0 / 0.5631 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.79e-05/0.3713, allocations: 15.94 kB / 0.5631 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.3713, allocations: 8 kB / 0.5631 GB, free: 2.043 MB / 398.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.0001371/0.3714, allocations: 130 kB / 0.5632 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.13e-05/0.3715, allocations: 11.89 kB / 0.5633 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.102e-05/0.3715, allocations: 16.7 kB / 0.5633 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3715, allocations: 3.938 kB / 0.5633 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3715, allocations: 0 / 0.5633 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.3715, allocations: 0 / 0.5633 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.3717, allocations: 180.7 kB / 0.5634 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3717, allocations: 3.938 kB / 0.5635 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.563e-05/0.3718, allocations: 15.92 kB / 0.5635 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.3718, allocations: 4 kB / 0.5635 GB, free: 1.629 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.3718, allocations: 4 kB / 0.5635 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3718, allocations: 384 / 0.5635 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3718, allocations: 0 / 0.5635 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003558/0.3722, allocations: 172.9 kB / 0.5636 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.343e-05/0.3722, allocations: 15.92 kB / 0.5637 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.3722, allocations: 0 / 0.5637 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.992e-05/0.3723, allocations: 16.05 kB / 0.5637 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.3723, allocations: 7.984 kB / 0.5637 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.3723, allocations: 0 / 0.5637 GB, free: 1.398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001045/0.3724, allocations: 114.1 kB / 0.5638 GB, free: 1.289 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3724, allocations: 0 / 0.5638 GB, free: 1.289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.3727, allocations: 23.92 kB / 0.5638 GB, free: 1.266 MB / 398.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.000724/0.3734, allocations: 0.7098 MB / 0.5645 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002565/0.3737, allocations: 67.91 kB / 0.5646 GB, free: 472 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3737, allocations: 4 kB / 0.5646 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.3738, allocations: 35.91 kB / 0.5646 GB, free: 432 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.374, allocations: 9.156 kB / 0.5646 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.3764, allocations: 1.715 MB / 0.5663 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.3769, allocations: 0.708 MB / 0.567 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.096e-05/0.3769, allocations: 12.34 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.381e-05/0.377, allocations: 35.42 kB / 0.567 GB, free: 13.78 MB / 414.1 MB Notification: Performance of SimCode: time 9.51e-07/0.377, allocations: 0 / 0.567 GB, free: 13.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/0.401, allocations: 2.659 MB / 0.5696 GB, free: 11.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.01, allocations: 7.188 kB / 0.5696 GB, free: 11.25 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.228244277997874]