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.001858/0.001858, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002548/0.002548, allocations: 207.9 kB / 23.73 MB, free: 4.387 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.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.226/0.226, allocations: 44.94 MB / 358.8 MB, free: 6.07 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",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.002339/0.002339, allocations: 63.91 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3137, allocations: 65.47 MB / 0.557 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.00302/0.3167, allocations: 1.664 MB / 0.5586 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.3177, allocations: 0.5581 MB / 0.5591 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.217e-05/0.3178, allocations: 0 / 0.5591 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.333e-05/0.3179, allocations: 15.86 kB / 0.5591 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.649e-05/0.3179, allocations: 11.81 kB / 0.5591 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002806/0.3182, allocations: 67.81 kB / 0.5592 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002474/0.3185, allocations: 123.6 kB / 0.5593 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3186, allocations: 23.12 kB / 0.5594 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.3187, allocations: 59.78 kB / 0.5594 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.3188, allocations: 43.77 kB / 0.5594 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.3189, allocations: 12 kB / 0.5595 GB, free: 4.973 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.256e-05/0.3189, allocations: 16 kB / 0.5595 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.602e-05/0.319, allocations: 31.89 kB / 0.5595 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.766e-05/0.319, allocations: 39.8 kB / 0.5595 GB, free: 4.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.3192, allocations: 123.5 kB / 0.5597 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3192, allocations: 0 / 0.5597 GB, free: 4.766 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3192, allocations: 0 / 0.5597 GB, free: 4.766 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.3192, allocations: 0 / 0.5597 GB, free: 4.766 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.0007503/0.32, allocations: 379.5 kB / 0.56 GB, free: 4.359 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.32, allocations: 8.031 kB / 0.56 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.954e-05/0.3201, allocations: 46.67 kB / 0.5601 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.3203, allocations: 20.88 kB / 0.5601 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.3205, allocations: 150.9 kB / 0.5602 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.3205, allocations: 8.375 kB / 0.5602 GB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.3205, allocations: 15.94 kB / 0.5603 GB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.3208, allocations: 85.64 kB / 0.5603 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.3208, allocations: 7.938 kB / 0.5604 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3208, allocations: 8 kB / 0.5604 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-06/0.3208, allocations: 0 / 0.5604 GB, free: 3.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.3209, allocations: 55.84 kB / 0.5604 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006062/0.3215, allocations: 335.6 kB / 0.5607 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.3217, allocations: 58.55 kB / 0.5608 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.949e-05/0.3217, allocations: 24.98 kB / 0.5608 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.3218, allocations: 4 kB / 0.5608 GB, free: 3.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.322, allocations: 103.3 kB / 0.5609 GB, free: 3.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.322, allocations: 0 / 0.5609 GB, free: 3.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003447/0.3223, allocations: 137.5 kB / 0.561 GB, free: 3.199 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/0.3224, allocations: 51.41 kB / 0.5611 GB, free: 3.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.3225, allocations: 152 kB / 0.5612 GB, free: 2.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.3225, allocations: 29.7 kB / 0.5613 GB, free: 2.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/0.3226, allocations: 112.2 kB / 0.5614 GB, free: 2.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.3226, allocations: 27.75 kB / 0.5614 GB, free: 2.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.559e-05/0.3227, allocations: 33.7 kB / 0.5614 GB, free: 2.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3229, allocations: 318.8 kB / 0.5617 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.793e-05/0.323, allocations: 27.98 kB / 0.5618 GB, free: 2.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.3231, allocations: 86.52 kB / 0.5618 GB, free: 2.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.3233, allocations: 123.6 kB / 0.562 GB, free: 2.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3233, allocations: 0 / 0.562 GB, free: 2.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002632/0.3236, allocations: 145.3 kB / 0.5621 GB, free: 2.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.3236, allocations: 8 kB / 0.5621 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3236, allocations: 4.219 kB / 0.5621 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3236, allocations: 4 kB / 0.5621 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.3238, allocations: 31.92 kB / 0.5622 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3238, allocations: 384 / 0.5622 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.5e-05/0.3238, allocations: 15.95 kB / 0.5622 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.3238, allocations: 4 kB / 0.5622 GB, free: 1.945 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.0001098/0.324, allocations: 129.7 kB / 0.5623 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.324, allocations: 19.81 kB / 0.5623 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.83e-05/0.324, allocations: 12.72 kB / 0.5623 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.324, allocations: 0 / 0.5623 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.324, allocations: 4 kB / 0.5623 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.324, allocations: 4 kB / 0.5623 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.3242, allocations: 164.7 kB / 0.5625 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3242, allocations: 0 / 0.5625 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.643e-05/0.3243, allocations: 19.86 kB / 0.5625 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3243, allocations: 4 kB / 0.5625 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.3243, allocations: 4 kB / 0.5625 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3243, allocations: 0 / 0.5625 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3243, allocations: 0 / 0.5625 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000431/0.3248, allocations: 176.9 kB / 0.5627 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.12e-05/0.3248, allocations: 15.81 kB / 0.5627 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.3248, allocations: 4.031 kB / 0.5627 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.507e-05/0.3249, allocations: 4 kB / 0.5627 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.3249, allocations: 7.984 kB / 0.5627 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.3249, allocations: 4 kB / 0.5627 GB, free: 1.309 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.773e-05/0.325, allocations: 112.4 kB / 0.5628 GB, free: 1.199 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.325, allocations: 0 / 0.5628 GB, free: 1.199 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.3252, allocations: 23.94 kB / 0.5628 GB, free: 1.176 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.0007417/0.326, allocations: 0.7063 MB / 0.5635 GB, free: 452 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002113/0.3262, allocations: 75.95 kB / 0.5636 GB, free: 376 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.3262, allocations: 4 kB / 0.5636 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.405e-05/0.3263, allocations: 31.92 kB / 0.5636 GB, free: 340 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.3265, allocations: 22.88 kB / 0.5637 GB, free: 320 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.3288, allocations: 1.7 MB / 0.5653 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.3289, allocations: 93.05 kB / 0.5654 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.097e-05/0.3289, allocations: 12.48 kB / 0.5654 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.779e-05/0.329, allocations: 35.42 kB / 0.5655 GB, free: 14.32 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.329, allocations: 0 / 0.5655 GB, free: 14.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.3624, allocations: 3.05 MB / 0.5684 GB, free: 11.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.8, allocations: 11.27 kB / 0.5685 GB, free: 11.39 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0003996 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.csv","/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] "Error: Could not read variable mean1.y in file ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.csv. Warning: Get data of variable mean1.y from file ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.csv failed! Error: Could not read variable rootMeanSquare.mean.y in file ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.csv. Warning: Get data of variable rootMeanSquare.mean.y from file ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.985637729987502]