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.001729/0.001729, allocations: 112.8 kB / 17.78 MB, free: 5.277 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.002019/0.002019, allocations: 180.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.483/1.483, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2387/0.2387, allocations: 44.19 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4433/0.4453, allocations: 60.82 MB / 0.5184 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003332/0.4487, allocations: 1.658 MB / 0.52 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.4498, allocations: 0.5379 MB / 0.5206 GB, free: 1.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.627e-05/0.4499, allocations: 5 kB / 0.5206 GB, free: 1.762 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.45, allocations: 11.38 kB / 0.5206 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.602e-05/0.4501, allocations: 10.48 kB / 0.5206 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003129/0.4504, allocations: 66.59 kB / 0.5206 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.4506, allocations: 113.3 kB / 0.5208 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.4508, allocations: 31.06 kB / 0.5208 GB, free: 1.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.4509, allocations: 55.05 kB / 0.5208 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.4511, allocations: 45.81 kB / 0.5209 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.427e-05/0.4511, allocations: 10.53 kB / 0.5209 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.829e-05/0.4511, allocations: 8.719 kB / 0.5209 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.824e-05/0.4512, allocations: 25.81 kB / 0.5209 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.325e-05/0.4513, allocations: 52.14 kB / 0.521 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000231/0.4515, allocations: 111.1 kB / 0.5211 GB, free: 1.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4515, allocations: 0 / 0.5211 GB, free: 1.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.237e-06/0.4515, allocations: 0 / 0.5211 GB, free: 1.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.4515, allocations: 0 / 0.5211 GB, free: 1.48 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.0007375/0.4523, allocations: 416.8 kB / 0.5215 GB, free: 1.082 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.4523, allocations: 9.375 kB / 0.5215 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.318e-05/0.4524, allocations: 40.41 kB / 0.5215 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.807e-05/0.4524, allocations: 11.16 kB / 0.5215 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/0.4526, allocations: 208.9 kB / 0.5217 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.4527, allocations: 3.625 kB / 0.5217 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/0.4527, allocations: 11.28 kB / 0.5217 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002342/0.4529, allocations: 108.4 kB / 0.5219 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.453, allocations: 0 / 0.5219 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.587e-05/0.453, allocations: 1.75 kB / 0.5219 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.453, allocations: 2.406 kB / 0.5219 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.4532, allocations: 50.88 kB / 0.5219 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005604/0.4537, allocations: 383.5 kB / 0.5223 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001502/0.4539, allocations: 56.98 kB / 0.5223 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.123e-05/0.454, allocations: 31.98 kB / 0.5224 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.454, allocations: 1.828 kB / 0.5224 GB, free: 356 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.4542, allocations: 111.6 kB / 0.5225 GB, free: 280 kB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.4542, allocations: 0 / 0.5225 GB, free: 280 kB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003754/0.4546, allocations: 129 kB / 0.5226 GB, free: 216 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.4546, allocations: 60.56 kB / 0.5226 GB, free: 144 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.4548, allocations: 137.6 kB / 0.5228 GB, free: 32 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.4548, allocations: 27.58 kB / 0.5228 GB, free: 0 / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4549, allocations: 104.8 kB / 0.5229 GB, free: 15.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/0.455, allocations: 34.05 kB / 0.5229 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.383e-05/0.455, allocations: 34.67 kB / 0.523 GB, free: 15.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.4552, allocations: 320.6 kB / 0.5233 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.578e-05/0.4553, allocations: 26.38 kB / 0.5233 GB, free: 15.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.4555, allocations: 84.97 kB / 0.5234 GB, free: 15.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.4557, allocations: 127.1 kB / 0.5235 GB, free: 15.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.4557, allocations: 5.344 kB / 0.5235 GB, free: 15.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002957/0.456, allocations: 134.1 kB / 0.5236 GB, free: 15.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.4561, allocations: 5.875 kB / 0.5236 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.4561, allocations: 2.531 kB / 0.5236 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.4561, allocations: 7.359 kB / 0.5236 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.4562, allocations: 25.22 kB / 0.5237 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.4563, allocations: 11.81 kB / 0.5237 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.847e-05/0.4563, allocations: 13.36 kB / 0.5237 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.4564, allocations: 6.484 kB / 0.5237 GB, free: 15.24 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.0001364/0.4565, allocations: 122.3 kB / 0.5238 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.4565, allocations: 9.438 kB / 0.5238 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.582e-05/0.4566, allocations: 16.8 kB / 0.5238 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.4566, allocations: 5.438 kB / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4566, allocations: 0 / 0.5238 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.4566, allocations: 4.516 kB / 0.5239 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/0.4569, allocations: 202.1 kB / 0.524 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4569, allocations: 0.5625 kB / 0.524 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.457, allocations: 15.98 kB / 0.5241 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.457, allocations: 1.125 kB / 0.5241 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.457, allocations: 6.172 kB / 0.5241 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.457, allocations: 5.062 kB / 0.5241 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.4571, allocations: 0.5625 kB / 0.5241 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003721/0.4574, allocations: 168.3 kB / 0.5242 GB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.729e-05/0.4575, allocations: 88.14 kB / 0.5243 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.4576, allocations: 10.84 kB / 0.5243 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.503e-05/0.4576, allocations: 7.766 kB / 0.5243 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.4577, allocations: 5.953 kB / 0.5243 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.4577, allocations: 7.781 kB / 0.5243 GB, free: 14.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.982e-05/0.4578, allocations: 104.4 kB / 0.5244 GB, free: 14.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4578, allocations: 0 / 0.5244 GB, free: 14.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002182/0.458, allocations: 20 kB / 0.5245 GB, free: 14.56 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.0007367/0.4588, allocations: 0.7069 MB / 0.5252 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002466/0.459, allocations: 74.94 kB / 0.5252 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.4591, allocations: 8.062 kB / 0.5252 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.4592, allocations: 33.55 kB / 0.5253 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.4594, allocations: 17.62 kB / 0.5253 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.4616, allocations: 1.655 MB / 0.5269 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.4621, allocations: 0.7028 MB / 0.5276 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.867e-05/0.4621, allocations: 15.55 kB / 0.5276 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.254e-05/0.4622, allocations: 29.23 kB / 0.5276 GB, free: 11.73 MB / 398.1 MB Notification: Performance of SimCode: time 2.936e-06/0.4622, allocations: 0 / 0.5276 GB, free: 11.73 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.4918, allocations: 2.326 MB / 0.5299 GB, free: 10.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.325, allocations: 5.531 kB / 0.5299 GB, free: 10.86 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