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.001547/0.001547, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001858/0.001858, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.413/1.413, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2241/0.2241, allocations: 46.93 MB / 360.9 MB, free: 4.289 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00219/0.00219, allocations: 63.91 kB / 0.4961 GB, free: 7.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3542, allocations: 66.04 MB / 0.5606 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003535/0.3577, allocations: 1.699 MB / 0.5623 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.359, allocations: 0.601 MB / 0.5629 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3591, allocations: 7.938 kB / 0.5629 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.3592, allocations: 7.875 kB / 0.5629 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.161e-05/0.3593, allocations: 27.72 kB / 0.5629 GB, free: 2.152 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.3596, allocations: 63.81 kB / 0.563 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002695/0.3599, allocations: 111.7 kB / 0.5631 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.36, allocations: 31.11 kB / 0.5631 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.3602, allocations: 59.78 kB / 0.5632 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.3604, allocations: 55.75 kB / 0.5632 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.3604, allocations: 8 kB / 0.5632 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.793e-05/0.3605, allocations: 16 kB / 0.5633 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.405e-05/0.3605, allocations: 23.92 kB / 0.5633 GB, free: 1.789 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.556e-05/0.3606, allocations: 51.73 kB / 0.5633 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.3608, allocations: 131.4 kB / 0.5635 GB, free: 1.609 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3608, allocations: 0 / 0.5635 GB, free: 1.609 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3608, allocations: 0 / 0.5635 GB, free: 1.609 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.543e-06/0.3608, allocations: 4 kB / 0.5635 GB, free: 1.605 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.0007777/0.3616, allocations: 371.5 kB / 0.5638 GB, free: 1.207 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.3616, allocations: 12.02 kB / 0.5638 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.554e-05/0.3617, allocations: 38.75 kB / 0.5639 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.3619, allocations: 24.88 kB / 0.5639 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.3621, allocations: 156.8 kB / 0.564 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.3621, allocations: 8.375 kB / 0.564 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.3622, allocations: 19.92 kB / 0.5641 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.3624, allocations: 93.58 kB / 0.5642 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.3624, allocations: 0 / 0.5642 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3624, allocations: 0 / 0.5642 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.3624, allocations: 4 kB / 0.5642 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.3626, allocations: 51.97 kB / 0.5642 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000587/0.3632, allocations: 359.6 kB / 0.5645 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.3633, allocations: 58.55 kB / 0.5646 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.705e-05/0.3634, allocations: 24.98 kB / 0.5646 GB, free: 288 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.3634, allocations: 0 / 0.5646 GB, free: 288 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002093/0.3636, allocations: 111.2 kB / 0.5647 GB, free: 164 kB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.383e-06/0.3636, allocations: 0 / 0.5647 GB, free: 164 kB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003435/0.364, allocations: 129.5 kB / 0.5649 GB, free: 28 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.75e-05/0.364, allocations: 55.41 kB / 0.5649 GB, free: 15.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.3642, allocations: 151.8 kB / 0.5651 GB, free: 15.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3642, allocations: 25.7 kB / 0.5651 GB, free: 15.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.675e-05/0.3643, allocations: 116.1 kB / 0.5652 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.3643, allocations: 31.73 kB / 0.5652 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.043e-05/0.3644, allocations: 29.72 kB / 0.5652 GB, free: 15.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3645, allocations: 318.8 kB / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.244e-05/0.3646, allocations: 27.98 kB / 0.5656 GB, free: 15.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.3647, allocations: 91.64 kB / 0.5657 GB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.3649, allocations: 115.6 kB / 0.5658 GB, free: 14.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3649, allocations: 4 kB / 0.5658 GB, free: 14.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002598/0.3652, allocations: 145.3 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.3652, allocations: 4 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.3652, allocations: 8.219 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3652, allocations: 0 / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3653, allocations: 23.98 kB / 0.566 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.3653, allocations: 7.938 kB / 0.566 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.135e-05/0.3654, allocations: 11.95 kB / 0.566 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.3654, allocations: 4 kB / 0.566 GB, free: 14.77 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.0001126/0.3655, allocations: 129.8 kB / 0.5661 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.069e-05/0.3656, allocations: 11.89 kB / 0.5661 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.3656, allocations: 16.72 kB / 0.5661 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.3656, allocations: 0 / 0.5661 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3656, allocations: 4 kB / 0.5661 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3656, allocations: 3.984 kB / 0.5661 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.3658, allocations: 173.1 kB / 0.5663 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3658, allocations: 0 / 0.5663 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.598e-05/0.3659, allocations: 19.88 kB / 0.5663 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3659, allocations: 0 / 0.5663 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3659, allocations: 7.922 kB / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.3659, allocations: 4 kB / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3659, allocations: 0 / 0.5663 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.3662, allocations: 176.9 kB / 0.5665 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.15e-05/0.3663, allocations: 16 kB / 0.5665 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.3663, allocations: 8 kB / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.939e-05/0.3663, allocations: 0 / 0.5665 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.3664, allocations: 7.984 kB / 0.5665 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.3664, allocations: 7.984 kB / 0.5665 GB, free: 14.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.045e-05/0.3665, allocations: 114.3 kB / 0.5666 GB, free: 14.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3665, allocations: 0 / 0.5666 GB, free: 14.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.3667, allocations: 23.94 kB / 0.5667 GB, free: 13.99 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.0006459/0.3674, allocations: 0.7021 MB / 0.5674 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002065/0.3676, allocations: 75.91 kB / 0.5674 GB, free: 13.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3676, allocations: 4 kB / 0.5674 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.008e-05/0.3677, allocations: 28.11 kB / 0.5675 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.3679, allocations: 26.58 kB / 0.5675 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/0.3698, allocations: 1.7 MB / 0.5691 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.3702, allocations: 0.7086 MB / 0.5698 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.915e-05/0.3703, allocations: 12.34 kB / 0.5698 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.318e-05/0.3704, allocations: 35.42 kB / 0.5699 GB, free: 10.52 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3704, allocations: 0 / 0.5699 GB, free: 10.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03049/0.4009, allocations: 2.632 MB / 0.5725 GB, free: 8.008 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.21, allocations: 0 / 0.5725 GB, free: 8.008 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.09496081317775]