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.001745/0.001745, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002146/0.002146, allocations: 215.8 kB / 23.73 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.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2259/0.2259, allocations: 46.97 MB / 360.9 MB, free: 4.016 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.00211/0.00211, allocations: 67.89 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3185, allocations: 66.04 MB / 0.5606 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002915/0.3214, allocations: 1.663 MB / 0.5622 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.3225, allocations: 0.5581 MB / 0.5628 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.853e-05/0.3225, allocations: 11.94 kB / 0.5628 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.845e-05/0.3226, allocations: 11.86 kB / 0.5628 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.035e-05/0.3227, allocations: 11.81 kB / 0.5628 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002829/0.323, allocations: 67.81 kB / 0.5629 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.3231, allocations: 115.7 kB / 0.563 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.3233, allocations: 27.06 kB / 0.563 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.3234, allocations: 63.78 kB / 0.563 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.3235, allocations: 39.77 kB / 0.5631 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.3235, allocations: 12 kB / 0.5631 GB, free: 1.641 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.357e-05/0.3236, allocations: 20 kB / 0.5631 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.3236, allocations: 27.91 kB / 0.5631 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.569e-05/0.3237, allocations: 43.78 kB / 0.5632 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.3239, allocations: 127.4 kB / 0.5633 GB, free: 1.426 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.3239, allocations: 0 / 0.5633 GB, free: 1.426 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3239, allocations: 4 kB / 0.5633 GB, free: 1.422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3239, allocations: 0 / 0.5633 GB, free: 1.422 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.0007334/0.3247, allocations: 367.5 kB / 0.5637 GB, free: 1.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.3247, allocations: 12.03 kB / 0.5637 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.076e-05/0.3247, allocations: 42.73 kB / 0.5637 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.3249, allocations: 24.88 kB / 0.5637 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00023/0.3252, allocations: 158.8 kB / 0.5639 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3252, allocations: 4.375 kB / 0.5639 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.3252, allocations: 11.94 kB / 0.5639 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.3254, allocations: 93.64 kB / 0.564 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.3254, allocations: 0 / 0.564 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.3254, allocations: 0 / 0.564 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3254, allocations: 4 kB / 0.564 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.3256, allocations: 51.97 kB / 0.564 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000577/0.3262, allocations: 335.6 kB / 0.5644 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.3263, allocations: 50.56 kB / 0.5644 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.041e-05/0.3264, allocations: 32.92 kB / 0.5644 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.3264, allocations: 0 / 0.5644 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001998/0.3266, allocations: 107.3 kB / 0.5645 GB, free: 12 kB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.3266, allocations: 0 / 0.5645 GB, free: 12 kB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003576/0.3269, allocations: 133.4 kB / 0.5647 GB, free: 15.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.327, allocations: 55.41 kB / 0.5647 GB, free: 15.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.3271, allocations: 155.6 kB / 0.5649 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.3272, allocations: 29.7 kB / 0.5649 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.3272, allocations: 108.2 kB / 0.565 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.3273, allocations: 27.75 kB / 0.565 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.27e-05/0.3273, allocations: 37.7 kB / 0.5651 GB, free: 15.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.3275, allocations: 322.8 kB / 0.5654 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.328e-05/0.3275, allocations: 27.92 kB / 0.5654 GB, free: 15.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.3277, allocations: 83.7 kB / 0.5655 GB, free: 14.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.3279, allocations: 127.6 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3279, allocations: 0 / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002709/0.3281, allocations: 145.3 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.3282, allocations: 4 kB / 0.5658 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3282, allocations: 4 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3282, allocations: 4 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.3283, allocations: 32.14 kB / 0.5658 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.3283, allocations: 4 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.152e-05/0.3284, allocations: 7.953 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.3284, allocations: 8 kB / 0.5658 GB, free: 14.61 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.0001134/0.3285, allocations: 129.8 kB / 0.5659 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.3285, allocations: 15.89 kB / 0.5659 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.3286, allocations: 8.719 kB / 0.566 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3286, allocations: 7.938 kB / 0.566 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3286, allocations: 0 / 0.566 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3286, allocations: 0 / 0.566 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.3288, allocations: 168.7 kB / 0.5661 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3288, allocations: 0 / 0.5661 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.433e-05/0.3288, allocations: 19.92 kB / 0.5661 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3288, allocations: 0 / 0.5661 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.3289, allocations: 0 / 0.5661 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3289, allocations: 0 / 0.5661 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3289, allocations: 4.375 kB / 0.5661 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000345/0.3292, allocations: 172.9 kB / 0.5663 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.359e-05/0.3292, allocations: 15.91 kB / 0.5663 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.3293, allocations: 8.062 kB / 0.5663 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.205e-05/0.3293, allocations: 7.938 kB / 0.5663 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.686e-05/0.3294, allocations: 7.984 kB / 0.5663 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.3294, allocations: 0 / 0.5663 GB, free: 13.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.855e-05/0.3295, allocations: 115.2 kB / 0.5665 GB, free: 13.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3295, allocations: 0 / 0.5665 GB, free: 13.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002272/0.3297, allocations: 23.94 kB / 0.5665 GB, free: 13.84 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.0006255/0.3303, allocations: 0.7021 MB / 0.5672 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002157/0.3305, allocations: 84.12 kB / 0.5672 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3305, allocations: 0 / 0.5672 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.805e-05/0.3306, allocations: 31.92 kB / 0.5673 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002067/0.3308, allocations: 19.03 kB / 0.5673 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.3328, allocations: 1.696 MB / 0.569 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.841e-05/0.3329, allocations: 93.67 kB / 0.569 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.892e-05/0.3329, allocations: 8.484 kB / 0.5691 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.645e-05/0.333, allocations: 39.42 kB / 0.5691 GB, free: 11 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.333, allocations: 4 kB / 0.5691 GB, free: 10.99 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0417/0.3747, allocations: 3.042 MB / 0.5721 GB, free: 8.082 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.84, allocations: 18.86 kB / 0.5721 GB, free: 8.07 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_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.csv","/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] "Error: Could not read variable mean1.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.csv. Warning: Get data of variable mean1.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.csv failed! Error: Could not read variable rootMeanSquare.mean.y in file ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.csv. Warning: Get data of variable rootMeanSquare.mean.y from file ModelicaTest_4.1.0_ModelicaTest.Blocks.RootMeanSquare_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.90098781697452]