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.001535/0.001535, 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.001708/0.001708, allocations: 209.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.466/1.466, 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.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.2292/0.2292, allocations: 44.93 MB / 358.8 MB, free: 6.062 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.002147/0.002147, allocations: 63.91 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3141, allocations: 65.47 MB / 0.5569 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003067/0.3172, allocations: 1.67 MB / 0.5586 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.3184, allocations: 0.5542 MB / 0.5591 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.035e-05/0.3184, allocations: 4 kB / 0.5591 GB, free: 5.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.013e-05/0.3185, allocations: 7.875 kB / 0.5591 GB, free: 5.301 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.062e-05/0.3186, allocations: 19.78 kB / 0.5592 GB, free: 5.281 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.3189, allocations: 67.81 kB / 0.5592 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001915/0.3191, allocations: 115.6 kB / 0.5593 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.3192, allocations: 27.12 kB / 0.5594 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.3194, allocations: 55.84 kB / 0.5594 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.3195, allocations: 55.69 kB / 0.5595 GB, free: 4.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.3195, allocations: 8 kB / 0.5595 GB, free: 4.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.421e-05/0.3196, allocations: 16 kB / 0.5595 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.548e-05/0.3197, allocations: 23.92 kB / 0.5595 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.966e-05/0.3197, allocations: 43.78 kB / 0.5595 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002106/0.3199, allocations: 123.5 kB / 0.5597 GB, free: 4.754 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3199, allocations: 0 / 0.5597 GB, free: 4.754 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3199, allocations: 0 / 0.5597 GB, free: 4.754 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3199, allocations: 0 / 0.5597 GB, free: 4.754 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.000869/0.3208, allocations: 379.5 kB / 0.56 GB, free: 4.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.3209, allocations: 12.02 kB / 0.56 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.811e-05/0.3209, allocations: 38.75 kB / 0.5601 GB, free: 4.289 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.3211, allocations: 24.88 kB / 0.5601 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.3215, allocations: 150.8 kB / 0.5602 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.3215, allocations: 8.375 kB / 0.5602 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.815e-05/0.3215, allocations: 19.92 kB / 0.5603 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.3218, allocations: 96.45 kB / 0.5604 GB, free: 3.969 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.3218, allocations: 4 kB / 0.5604 GB, free: 3.965 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.3218, allocations: 4 kB / 0.5604 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.3218, allocations: 0 / 0.5604 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.3219, allocations: 51.91 kB / 0.5604 GB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006003/0.3225, allocations: 335.6 kB / 0.5607 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.3227, allocations: 62.47 kB / 0.5608 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.3229, allocations: 24.98 kB / 0.5608 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.3229, allocations: 4 kB / 0.5608 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.3232, allocations: 111.2 kB / 0.5609 GB, free: 3.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.3232, allocations: 0 / 0.5609 GB, free: 3.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003467/0.3235, allocations: 125.5 kB / 0.561 GB, free: 3.188 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.3236, allocations: 63.39 kB / 0.5611 GB, free: 3.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.3237, allocations: 148.4 kB / 0.5613 GB, free: 2.961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.3237, allocations: 25.7 kB / 0.5613 GB, free: 2.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.485e-05/0.3238, allocations: 112.2 kB / 0.5614 GB, free: 2.816 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.3238, allocations: 31.73 kB / 0.5614 GB, free: 2.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.511e-05/0.3239, allocations: 33.7 kB / 0.5614 GB, free: 2.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.3241, allocations: 318.8 kB / 0.5617 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.3242, allocations: 23.98 kB / 0.5618 GB, free: 2.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.3243, allocations: 87.7 kB / 0.5619 GB, free: 2.289 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.3246, allocations: 119.6 kB / 0.562 GB, free: 2.145 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3246, allocations: 4 kB / 0.562 GB, free: 2.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002784/0.3248, allocations: 141.4 kB / 0.5621 GB, free: 1.996 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.3249, allocations: 6.656 kB / 0.5621 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3249, allocations: 8.219 kB / 0.5621 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3249, allocations: 0 / 0.5621 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.325, allocations: 27.92 kB / 0.5621 GB, free: 1.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.325, allocations: 4 kB / 0.5622 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.738e-05/0.3251, allocations: 15.94 kB / 0.5622 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.3251, allocations: 4 kB / 0.5622 GB, free: 1.934 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.0001242/0.3252, allocations: 129.7 kB / 0.5623 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.3253, allocations: 15.89 kB / 0.5623 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.26e-05/0.3253, allocations: 8.719 kB / 0.5623 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3253, allocations: 11.98 kB / 0.5623 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3253, allocations: 0 / 0.5623 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3253, allocations: 0 / 0.5623 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001721/0.3255, allocations: 160.7 kB / 0.5625 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3255, allocations: 384 / 0.5625 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.3256, allocations: 15.94 kB / 0.5625 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3256, allocations: 3.938 kB / 0.5625 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.3256, allocations: 3.984 kB / 0.5625 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.3256, allocations: 3.938 kB / 0.5625 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3256, allocations: 0 / 0.5625 GB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003701/0.326, allocations: 176.9 kB / 0.5627 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.43e-05/0.326, allocations: 15.92 kB / 0.5627 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.326, allocations: 4.094 kB / 0.5627 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.775e-05/0.3261, allocations: 7.984 kB / 0.5627 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.3261, allocations: 11.92 kB / 0.5627 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.3262, allocations: 7.984 kB / 0.5627 GB, free: 1.293 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.541e-05/0.3263, allocations: 109 kB / 0.5628 GB, free: 1.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3263, allocations: 0 / 0.5628 GB, free: 1.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.3265, allocations: 23.94 kB / 0.5629 GB, free: 1.164 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.0007082/0.3272, allocations: 0.7061 MB / 0.5635 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002323/0.3274, allocations: 75.84 kB / 0.5636 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3274, allocations: 0 / 0.5636 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.976e-05/0.3275, allocations: 36.14 kB / 0.5636 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.3277, allocations: 16.12 kB / 0.5637 GB, free: 312 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.33, allocations: 1.704 MB / 0.5653 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.712e-05/0.3301, allocations: 93.05 kB / 0.5654 GB, free: 14.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.373e-05/0.3301, allocations: 12.48 kB / 0.5654 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.535e-05/0.3302, allocations: 35.42 kB / 0.5655 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3302, allocations: 0 / 0.5655 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03263/0.3628, allocations: 3.055 MB / 0.5684 GB, free: 11.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.78, allocations: 19.03 kB / 0.5685 GB, free: 11.37 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --stepSize=0.0003996 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.709412164054811]