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.002088/0.002088, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002637/0.002637, allocations: 202.1 kB / 23.73 MB, free: 4.379 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.512/1.512, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.236/0.236, allocations: 46.95 MB / 360.9 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 179] 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.002009/0.002009, allocations: 67.91 kB / 0.4961 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3656, allocations: 66.03 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003116/0.3687, allocations: 1.661 MB / 0.5622 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.3699, allocations: 0.5581 MB / 0.5627 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.764e-05/0.37, allocations: 7.938 kB / 0.5628 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.3701, allocations: 15.86 kB / 0.5628 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.223e-05/0.3702, allocations: 15.81 kB / 0.5628 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.3705, allocations: 63.81 kB / 0.5628 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.3707, allocations: 119.7 kB / 0.563 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.3709, allocations: 23.12 kB / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.371, allocations: 63.77 kB / 0.563 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.3712, allocations: 47.78 kB / 0.5631 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.3712, allocations: 8 kB / 0.5631 GB, free: 1.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.01e-05/0.3713, allocations: 23.98 kB / 0.5631 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.203e-05/0.3713, allocations: 27.86 kB / 0.5631 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.168e-05/0.3714, allocations: 43.78 kB / 0.5632 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002464/0.3717, allocations: 123.5 kB / 0.5633 GB, free: 1.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3717, allocations: 0 / 0.5633 GB, free: 1.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3717, allocations: 0 / 0.5633 GB, free: 1.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.3717, allocations: 4 kB / 0.5633 GB, free: 1.414 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.000915/0.3726, allocations: 371.4 kB / 0.5637 GB, free: 1.016 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.3726, allocations: 8.031 kB / 0.5637 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.315e-05/0.3727, allocations: 46.73 kB / 0.5637 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002358/0.3729, allocations: 28.88 kB / 0.5637 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002822/0.3732, allocations: 153.7 kB / 0.5639 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.3732, allocations: 8.312 kB / 0.5639 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.3733, allocations: 11.94 kB / 0.5639 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.3735, allocations: 96.45 kB / 0.564 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.3735, allocations: 0 / 0.564 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.3736, allocations: 4 kB / 0.564 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.3736, allocations: 0 / 0.564 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.3737, allocations: 55.95 kB / 0.5641 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000601/0.3743, allocations: 339.6 kB / 0.5644 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.3745, allocations: 50.55 kB / 0.5644 GB, free: 148 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.246e-05/0.3745, allocations: 28.89 kB / 0.5645 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.3745, allocations: 4.031 kB / 0.5645 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.3748, allocations: 103.4 kB / 0.5646 GB, free: 15.99 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.3748, allocations: 0 / 0.5646 GB, free: 15.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003683/0.3752, allocations: 133.4 kB / 0.5647 GB, free: 15.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/0.3752, allocations: 59.41 kB / 0.5647 GB, free: 15.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.3754, allocations: 145.8 kB / 0.5649 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.3754, allocations: 29.7 kB / 0.5649 GB, free: 15.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.637e-05/0.3755, allocations: 108.2 kB / 0.565 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.446e-05/0.3755, allocations: 27.75 kB / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.793e-05/0.3756, allocations: 33.7 kB / 0.5651 GB, free: 15.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3757, allocations: 326.8 kB / 0.5654 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.993e-05/0.3758, allocations: 23.98 kB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.3759, allocations: 87.64 kB / 0.5655 GB, free: 14.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.3761, allocations: 123.6 kB / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3761, allocations: 0 / 0.5656 GB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003514/0.3765, allocations: 145.3 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3765, allocations: 7.938 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3765, allocations: 4 kB / 0.5658 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.3765, allocations: 4 kB / 0.5658 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3766, allocations: 23.92 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3767, allocations: 8.219 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.597e-05/0.3767, allocations: 11.95 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.3767, allocations: 8 kB / 0.5658 GB, free: 14.6 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.0001272/0.3769, allocations: 129.8 kB / 0.5659 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.3769, allocations: 15.89 kB / 0.5659 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.3769, allocations: 8.719 kB / 0.566 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3769, allocations: 4 kB / 0.566 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.377, allocations: 0 / 0.566 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.377, allocations: 3.938 kB / 0.566 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.3771, allocations: 168.7 kB / 0.5661 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3771, allocations: 0 / 0.5661 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.3772, allocations: 19.92 kB / 0.5661 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3772, allocations: 0 / 0.5661 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.3773, allocations: 0 / 0.5661 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3773, allocations: 0 / 0.5661 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3773, allocations: 8.359 kB / 0.5662 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003507/0.3776, allocations: 168.9 kB / 0.5663 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.3776, allocations: 19.98 kB / 0.5663 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.3777, allocations: 4 kB / 0.5663 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.7e-05/0.3777, allocations: 8.062 kB / 0.5663 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.3778, allocations: 3.984 kB / 0.5663 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.3778, allocations: 8 kB / 0.5664 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.544e-05/0.3779, allocations: 112.8 kB / 0.5665 GB, free: 13.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3779, allocations: 0 / 0.5665 GB, free: 13.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.3781, allocations: 23.94 kB / 0.5665 GB, free: 13.83 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.0006359/0.3787, allocations: 0.7021 MB / 0.5672 GB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.379, allocations: 79.91 kB / 0.5672 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.379, allocations: 0 / 0.5672 GB, free: 13.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 9.543e-05/0.3791, allocations: 39.86 kB / 0.5673 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.3793, allocations: 12.36 kB / 0.5673 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.3814, allocations: 1.7 MB / 0.569 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.44e-05/0.3815, allocations: 97.67 kB / 0.569 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.677e-05/0.3815, allocations: 8.484 kB / 0.5691 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.478e-05/0.3816, allocations: 35.42 kB / 0.5691 GB, free: 10.98 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3816, allocations: 0 / 0.5691 GB, free: 10.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03073/0.4123, allocations: 3.093 MB / 0.5721 GB, free: 8.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.19, allocations: 11.02 kB / 0.5721 GB, free: 8.012 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.285842782992404]