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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1984/0.1984, allocations: 44.19 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001226, allocations: 67.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3571, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003516/0.3607, allocations: 1.663 MB / 0.52 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000981/0.3617, allocations: 0.5335 MB / 0.5206 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.562e-05/0.3618, allocations: 1.438 kB / 0.5206 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.3619, allocations: 9.984 kB / 0.5206 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.746e-05/0.362, allocations: 20.42 kB / 0.5206 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.3623, allocations: 62.19 kB / 0.5207 GB, free: 1.676 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002083/0.3625, allocations: 108.7 kB / 0.5208 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.3627, allocations: 31.66 kB / 0.5208 GB, free: 1.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.3628, allocations: 46.92 kB / 0.5208 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.363, allocations: 49.38 kB / 0.5209 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/0.363, allocations: 10.78 kB / 0.5209 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.94e-05/0.3631, allocations: 13 kB / 0.5209 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.838e-05/0.3631, allocations: 25.58 kB / 0.5209 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.3633, allocations: 51.97 kB / 0.521 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.3635, allocations: 106.5 kB / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3635, allocations: 1.438 kB / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3635, allocations: 0 / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.3636, allocations: 0 / 0.5211 GB, free: 1.461 MB / 382.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.0008565/0.3644, allocations: 420.1 kB / 0.5215 GB, free: 1.059 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3645, allocations: 9.969 kB / 0.5215 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.043e-05/0.3645, allocations: 43.48 kB / 0.5215 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.566e-05/0.3646, allocations: 15.34 kB / 0.5215 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.3648, allocations: 204.8 kB / 0.5217 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.3648, allocations: 4.594 kB / 0.5217 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.3649, allocations: 9.844 kB / 0.5218 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.3651, allocations: 99.86 kB / 0.5218 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3651, allocations: 0.9375 kB / 0.5218 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.3652, allocations: 5.75 kB / 0.5219 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3652, allocations: 6.188 kB / 0.5219 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001555/0.3653, allocations: 51.34 kB / 0.5219 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005428/0.3659, allocations: 383.1 kB / 0.5223 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.366, allocations: 57.53 kB / 0.5223 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.955e-05/0.3661, allocations: 31.78 kB / 0.5224 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.3661, allocations: 1.25 kB / 0.5224 GB, free: 328 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002001/0.3664, allocations: 103.2 kB / 0.5225 GB, free: 260 kB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.3664, allocations: 1.094 kB / 0.5225 GB, free: 260 kB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003573/0.3667, allocations: 128.2 kB / 0.5226 GB, free: 196 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.3668, allocations: 61.16 kB / 0.5226 GB, free: 124 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3669, allocations: 137.5 kB / 0.5228 GB, free: 12 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.3669, allocations: 27.3 kB / 0.5228 GB, free: 15.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.367, allocations: 103.9 kB / 0.5229 GB, free: 15.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.605e-05/0.3671, allocations: 30.86 kB / 0.5229 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.3671, allocations: 30.41 kB / 0.523 GB, free: 15.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3672, allocations: 321.7 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.452e-05/0.3673, allocations: 30.58 kB / 0.5233 GB, free: 15.51 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.3675, allocations: 81.25 kB / 0.5234 GB, free: 15.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002013/0.3677, allocations: 123.5 kB / 0.5235 GB, free: 15.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3677, allocations: 4 kB / 0.5235 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002638/0.3679, allocations: 138.4 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.368, allocations: 5.844 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.368, allocations: 3.047 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.368, allocations: 11.28 kB / 0.5236 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.3681, allocations: 24.62 kB / 0.5237 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.3682, allocations: 8.031 kB / 0.5237 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.732e-05/0.3683, allocations: 14.84 kB / 0.5237 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.3683, allocations: 9.172 kB / 0.5237 GB, free: 15.22 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.00012/0.3684, allocations: 130 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.3684, allocations: 8.953 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.012e-05/0.3685, allocations: 15.91 kB / 0.5238 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3685, allocations: 5.406 kB / 0.5238 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3685, allocations: 0 / 0.5238 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3685, allocations: 1.969 kB / 0.5238 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.3687, allocations: 206.6 kB / 0.524 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3687, allocations: 4 kB / 0.5241 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.3688, allocations: 15.44 kB / 0.5241 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3688, allocations: 1.5 kB / 0.5241 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.3689, allocations: 6.391 kB / 0.5241 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.086e-05/0.3689, allocations: 3.938 kB / 0.5241 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3689, allocations: 5.188 kB / 0.5241 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.3692, allocations: 163.3 kB / 0.5242 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.719e-05/0.3693, allocations: 93.7 kB / 0.5243 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.879e-05/0.3693, allocations: 5.25 kB / 0.5243 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.75e-05/0.3694, allocations: 8.562 kB / 0.5243 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.3695, allocations: 6.375 kB / 0.5243 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.3695, allocations: 8.156 kB / 0.5244 GB, free: 14.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.046e-05/0.3696, allocations: 104.4 kB / 0.5245 GB, free: 14.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3696, allocations: 0 / 0.5245 GB, free: 14.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002182/0.3698, allocations: 15.12 kB / 0.5245 GB, free: 14.54 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.0006154/0.3704, allocations: 0.7108 MB / 0.5252 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002236/0.3706, allocations: 78.69 kB / 0.5252 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3707, allocations: 0 / 0.5252 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.981e-05/0.3708, allocations: 34.36 kB / 0.5253 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.371, allocations: 20.91 kB / 0.5253 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/0.3728, allocations: 1.651 MB / 0.5269 GB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002595/0.373, allocations: 0.7011 MB / 0.5276 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.069e-05/0.3731, allocations: 10.16 kB / 0.5276 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.278e-05/0.3732, allocations: 28.23 kB / 0.5276 GB, free: 11.71 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3732, allocations: 4 kB / 0.5276 GB, free: 11.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.3928, allocations: 2.327 MB / 0.5299 GB, free: 10.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/8.111, allocations: 5.5 kB / 0.5299 GB, free: 10.84 MB / 398.1 MB (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.0008 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) 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) Reference file matches