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.002042/0.002042, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002399/0.002399, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.2376/0.2376, allocations: 46.93 MB / 361.6 MB, free: 4.285 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.001895/0.001895, allocations: 71.84 kB / 0.4969 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3595, allocations: 66.03 MB / 0.5614 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003025/0.3625, allocations: 1.706 MB / 0.5631 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.3636, allocations: 0.6088 MB / 0.5637 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.522e-05/0.3637, allocations: 0 / 0.5637 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.3638, allocations: 11.86 kB / 0.5637 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.914e-05/0.3639, allocations: 15.81 kB / 0.5637 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.3642, allocations: 67.81 kB / 0.5638 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.3644, allocations: 123.5 kB / 0.5639 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.3645, allocations: 27.12 kB / 0.5639 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.3647, allocations: 59.83 kB / 0.564 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.3648, allocations: 47.72 kB / 0.564 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.393e-05/0.3648, allocations: 8 kB / 0.564 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.241e-05/0.3649, allocations: 23.98 kB / 0.564 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.519e-05/0.3649, allocations: 27.91 kB / 0.5641 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.95e-05/0.365, allocations: 47.73 kB / 0.5641 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.3652, allocations: 123.5 kB / 0.5642 GB, free: 1.594 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3652, allocations: 0 / 0.5642 GB, free: 1.594 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3652, allocations: 4 kB / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.3652, allocations: 0 / 0.5642 GB, free: 1.59 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.0007316/0.3659, allocations: 375.5 kB / 0.5646 GB, free: 1.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.366, allocations: 8.031 kB / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.657e-05/0.366, allocations: 4.188 kB / 0.5646 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.025e-05/0.366, allocations: 42.67 kB / 0.5646 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.3662, allocations: 32.81 kB / 0.5647 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/0.3664, allocations: 152.2 kB / 0.5648 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.3665, allocations: 12.12 kB / 0.5648 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3665, allocations: 8 kB / 0.5648 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.3667, allocations: 89.64 kB / 0.5649 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.3667, allocations: 0 / 0.5649 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.3667, allocations: 4 kB / 0.5649 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3667, allocations: 4 kB / 0.5649 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.3669, allocations: 55.89 kB / 0.565 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000579/0.3675, allocations: 359.6 kB / 0.5653 GB, free: 360 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.3676, allocations: 54.59 kB / 0.5654 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.91e-05/0.3677, allocations: 24.89 kB / 0.5654 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3677, allocations: 8 kB / 0.5654 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001952/0.3679, allocations: 99.28 kB / 0.5655 GB, free: 148 kB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.3679, allocations: 3.938 kB / 0.5655 GB, free: 144 kB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003346/0.3682, allocations: 129.5 kB / 0.5656 GB, free: 8 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.3683, allocations: 55.41 kB / 0.5657 GB, free: 15.94 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.3684, allocations: 152.2 kB / 0.5658 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.3684, allocations: 33.7 kB / 0.5659 GB, free: 15.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.605e-05/0.3685, allocations: 108.2 kB / 0.566 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.3685, allocations: 27.75 kB / 0.566 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.165e-05/0.3686, allocations: 33.7 kB / 0.566 GB, free: 15.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3688, allocations: 318.8 kB / 0.5663 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.658e-05/0.3688, allocations: 27.98 kB / 0.5664 GB, free: 15.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.3689, allocations: 83.7 kB / 0.5664 GB, free: 15.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.3691, allocations: 119.6 kB / 0.5665 GB, free: 14.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3691, allocations: 0 / 0.5665 GB, free: 14.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002777/0.3694, allocations: 153.8 kB / 0.5667 GB, free: 14.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3694, allocations: 8 kB / 0.5667 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.3694, allocations: 0 / 0.5667 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3695, allocations: 4 kB / 0.5667 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.3696, allocations: 31.86 kB / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.3696, allocations: 0 / 0.5667 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.525e-05/0.3697, allocations: 11.95 kB / 0.5667 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.3697, allocations: 8 kB / 0.5668 GB, free: 14.75 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.0001391/0.3698, allocations: 136.5 kB / 0.5669 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.3699, allocations: 15.88 kB / 0.5669 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.3699, allocations: 12.72 kB / 0.5669 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3699, allocations: 0 / 0.5669 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3699, allocations: 0 / 0.5669 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3699, allocations: 0 / 0.5669 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002055/0.3701, allocations: 184.7 kB / 0.5671 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3701, allocations: 3.938 kB / 0.5671 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.3702, allocations: 11.98 kB / 0.5671 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3702, allocations: 0 / 0.5671 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.3702, allocations: 8 kB / 0.5671 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3702, allocations: 0 / 0.5671 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3702, allocations: 0 / 0.5671 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/0.3706, allocations: 172.9 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.633e-05/0.3706, allocations: 15.91 kB / 0.5673 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.594e-05/0.3707, allocations: 3.938 kB / 0.5673 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.327e-05/0.3707, allocations: 8 kB / 0.5673 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.3708, allocations: 12.05 kB / 0.5673 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.3708, allocations: 0 / 0.5673 GB, free: 14.11 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.975e-05/0.3709, allocations: 118.4 kB / 0.5674 GB, free: 13.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3709, allocations: 0 / 0.5674 GB, free: 13.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000226/0.3711, allocations: 19.94 kB / 0.5674 GB, free: 13.97 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.0007412/0.3718, allocations: 0.7061 MB / 0.5681 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002528/0.3721, allocations: 75.83 kB / 0.5682 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3721, allocations: 0 / 0.5682 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.818e-05/0.3722, allocations: 35.92 kB / 0.5682 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.3724, allocations: 14.48 kB / 0.5683 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.3747, allocations: 1.692 MB / 0.5699 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.3751, allocations: 0.7086 MB / 0.5706 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.273e-05/0.3751, allocations: 12.58 kB / 0.5706 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.546e-05/0.3752, allocations: 35.42 kB / 0.5706 GB, free: 10.51 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3752, allocations: 0 / 0.5706 GB, free: 10.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.3991, allocations: 2.663 MB / 0.5732 GB, free: 7.973 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.85, allocations: 11.2 kB / 0.5733 GB, free: 7.965 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.025664781976957]