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.001284/0.001284, allocations: 113.1 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.00153/0.00153, allocations: 217.2 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.586/1.586, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.2327/0.2327, allocations: 44.92 MB / 358.8 MB, free: 6.297 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.002019/0.002019, allocations: 59.91 kB / 0.4931 GB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3415, allocations: 65.48 MB / 0.557 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.00338/0.3449, allocations: 1.706 MB / 0.5587 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.3461, allocations: 0.5931 MB / 0.5593 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.562e-05/0.3462, allocations: 4 kB / 0.5593 GB, free: 5.488 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.3463, allocations: 11.86 kB / 0.5593 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.831e-05/0.3464, allocations: 23.78 kB / 0.5593 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.3468, allocations: 67.81 kB / 0.5594 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.347, allocations: 111.6 kB / 0.5595 GB, free: 5.277 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.3471, allocations: 27.12 kB / 0.5595 GB, free: 5.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.3473, allocations: 59.77 kB / 0.5596 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.3474, allocations: 51.77 kB / 0.5596 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.3475, allocations: 8 kB / 0.5596 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.144e-05/0.3475, allocations: 23.98 kB / 0.5596 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.336e-05/0.3476, allocations: 23.92 kB / 0.5597 GB, free: 5.086 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.674e-05/0.3477, allocations: 47.73 kB / 0.5597 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.3479, allocations: 131.5 kB / 0.5598 GB, free: 4.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3479, allocations: 0 / 0.5598 GB, free: 4.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3479, allocations: 0 / 0.5598 GB, free: 4.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.3479, allocations: 0 / 0.5598 GB, free: 4.91 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.0008207/0.3487, allocations: 371.5 kB / 0.5602 GB, free: 4.512 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.3488, allocations: 12.03 kB / 0.5602 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.3488, allocations: 42.67 kB / 0.5602 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.349, allocations: 28.88 kB / 0.5603 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.3493, allocations: 148.6 kB / 0.5604 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.3493, allocations: 8.375 kB / 0.5604 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/0.3493, allocations: 15.94 kB / 0.5604 GB, free: 4.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.3495, allocations: 89.64 kB / 0.5605 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3495, allocations: 3.938 kB / 0.5605 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.3495, allocations: 7.984 kB / 0.5605 GB, free: 4.125 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.3496, allocations: 4 kB / 0.5605 GB, free: 4.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001518/0.3497, allocations: 62.66 kB / 0.5606 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005993/0.3503, allocations: 355.6 kB / 0.5609 GB, free: 3.672 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.3505, allocations: 58.58 kB / 0.561 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.942e-05/0.3506, allocations: 24.92 kB / 0.561 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.3506, allocations: 8.031 kB / 0.561 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.3508, allocations: 99.28 kB / 0.5611 GB, free: 3.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.3508, allocations: 0 / 0.5611 GB, free: 3.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.000389/0.3512, allocations: 125.5 kB / 0.5612 GB, free: 3.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.3512, allocations: 59.41 kB / 0.5613 GB, free: 3.262 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.3514, allocations: 152 kB / 0.5614 GB, free: 3.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.3514, allocations: 29.7 kB / 0.5615 GB, free: 3.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.912e-05/0.3515, allocations: 104.2 kB / 0.5616 GB, free: 2.965 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.3516, allocations: 31.73 kB / 0.5616 GB, free: 2.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.069e-05/0.3516, allocations: 37.7 kB / 0.5616 GB, free: 2.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3518, allocations: 318.8 kB / 0.5619 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.685e-05/0.3519, allocations: 27.98 kB / 0.562 GB, free: 2.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.352, allocations: 83.7 kB / 0.562 GB, free: 2.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.3522, allocations: 123.6 kB / 0.5622 GB, free: 2.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3522, allocations: 4 kB / 0.5622 GB, free: 2.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002946/0.3525, allocations: 145.4 kB / 0.5623 GB, free: 2.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.3525, allocations: 4 kB / 0.5623 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3526, allocations: 4 kB / 0.5623 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3526, allocations: 0 / 0.5623 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.3527, allocations: 31.92 kB / 0.5623 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.3527, allocations: 4 kB / 0.5623 GB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.393e-05/0.3528, allocations: 7.953 kB / 0.5623 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.3528, allocations: 4 kB / 0.5623 GB, free: 2.078 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.0001258/0.3529, allocations: 142.2 kB / 0.5625 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.136e-05/0.3529, allocations: 11.89 kB / 0.5625 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.643e-05/0.353, allocations: 16.72 kB / 0.5625 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.353, allocations: 0 / 0.5625 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.353, allocations: 3.938 kB / 0.5625 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.353, allocations: 4 kB / 0.5625 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001821/0.3532, allocations: 172.6 kB / 0.5627 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3532, allocations: 0 / 0.5627 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.3533, allocations: 19.92 kB / 0.5627 GB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3533, allocations: 4 kB / 0.5627 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.3533, allocations: 4 kB / 0.5627 GB, free: 1.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.3533, allocations: 3.984 kB / 0.5627 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.3533, allocations: 3.938 kB / 0.5627 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003503/0.3536, allocations: 168.9 kB / 0.5629 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.993e-05/0.3537, allocations: 11.92 kB / 0.5629 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.3537, allocations: 8 kB / 0.5629 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.252e-05/0.3538, allocations: 4.062 kB / 0.5629 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.3538, allocations: 11.98 kB / 0.5629 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.208e-05/0.3538, allocations: 4 kB / 0.5629 GB, free: 1.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.563e-05/0.3539, allocations: 107.2 kB / 0.563 GB, free: 1.316 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3539, allocations: 0 / 0.563 GB, free: 1.316 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002269/0.3541, allocations: 23.94 kB / 0.563 GB, free: 1.293 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.0006565/0.3548, allocations: 0.7138 MB / 0.5637 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.355, allocations: 72.16 kB / 0.5638 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.355, allocations: 4 kB / 0.5638 GB, free: 488 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.444e-05/0.3551, allocations: 31.92 kB / 0.5638 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.3553, allocations: 20.56 kB / 0.5639 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.3574, allocations: 1.702 MB / 0.5655 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.3577, allocations: 0.708 MB / 0.5662 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.713e-05/0.3578, allocations: 12.34 kB / 0.5662 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.16e-05/0.3579, allocations: 35.42 kB / 0.5663 GB, free: 13.81 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3579, allocations: 0 / 0.5663 GB, free: 13.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.3868, allocations: 2.628 MB / 0.5688 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.42, allocations: 5.984 kB / 0.5688 GB, free: 11.3 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.670999517999007]