Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002303/0.002303, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 89.94 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2859/0.2859, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.171e-05/3.189e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1279, allocations: 58.86 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5379/0.6659, allocations: 85.76 MB / 0.5566 GB, free: 1.738 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.6662, allocations: 70.52 kB / 0.5567 GB, free: 1.703 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006969/0.6732, allocations: 1.68 MB / 0.5583 GB, free: 264 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6732, allocations: 3.938 kB / 0.5583 GB, free: 260 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.6732, allocations: 4 kB / 0.5583 GB, free: 256 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005955/0.6738, allocations: 377.6 kB / 0.5587 GB, free: 15.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.6739, allocations: 8.031 kB / 0.5587 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.334e-05/0.674, allocations: 42.06 kB / 0.5588 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.053e-05/0.674, allocations: 15.86 kB / 0.5588 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.6744, allocations: 213.4 kB / 0.559 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.6744, allocations: 4 kB / 0.559 GB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.631e-05/0.6745, allocations: 7.75 kB / 0.559 GB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.6747, allocations: 83.59 kB / 0.5591 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.6748, allocations: 0 / 0.5591 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.6748, allocations: 3.609 kB / 0.5591 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.6748, allocations: 4 kB / 0.5591 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.6749, allocations: 42.05 kB / 0.5591 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007226/0.6757, allocations: 373.9 kB / 0.5595 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.6759, allocations: 51.92 kB / 0.5595 GB, free: 15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.034e-05/0.676, allocations: 23.2 kB / 0.5595 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.676, allocations: 4 kB / 0.5595 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.6763, allocations: 107.1 kB / 0.5596 GB, free: 14.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.415e-06/0.6763, allocations: 0 / 0.5596 GB, free: 14.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003147/0.6766, allocations: 88.58 kB / 0.5597 GB, free: 14.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.6767, allocations: 55.41 kB / 0.5598 GB, free: 14.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.6768, allocations: 130.5 kB / 0.5599 GB, free: 14.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.629e-05/0.6769, allocations: 33.52 kB / 0.5599 GB, free: 14.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.777e-05/0.677, allocations: 164.3 kB / 0.5601 GB, free: 14.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.677, allocations: 30.02 kB / 0.5601 GB, free: 14.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-06/0.6771, allocations: 0 / 0.5601 GB, free: 14.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.6772, allocations: 318.1 kB / 0.5604 GB, free: 14.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.284e-05/0.6773, allocations: 18.19 kB / 0.5604 GB, free: 14.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.6774, allocations: 77.17 kB / 0.5605 GB, free: 13.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.6775, allocations: 37.2 kB / 0.5606 GB, free: 13.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6776, allocations: 3.938 kB / 0.5606 GB, free: 13.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000304/0.6779, allocations: 128.9 kB / 0.5607 GB, free: 13.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.6779, allocations: 11.95 kB / 0.5607 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.6779, allocations: 0 / 0.5607 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.678, allocations: 4 kB / 0.5607 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.6782, allocations: 23.98 kB / 0.5607 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.6782, allocations: 224 / 0.5607 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.6784, allocations: 22.97 kB / 0.5607 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.6784, allocations: 7.938 kB / 0.5607 GB, free: 13.75 MB / 378.7 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 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.6785, allocations: 113.8 kB / 0.5609 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.6785, allocations: 7.906 kB / 0.5609 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.653e-05/0.6786, allocations: 19.33 kB / 0.5609 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.6786, allocations: 0 / 0.5609 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.6786, allocations: 3.938 kB / 0.5609 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.6787, allocations: 4 kB / 0.5609 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/0.6789, allocations: 198.2 kB / 0.5611 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.6789, allocations: 0 / 0.5611 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001685/0.6791, allocations: 19.92 kB / 0.5611 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.6791, allocations: 0 / 0.5611 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.6791, allocations: 0 / 0.5611 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.6792, allocations: 7.953 kB / 0.5611 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6792, allocations: 0 / 0.5611 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003847/0.6796, allocations: 156.4 kB / 0.5613 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.6796, allocations: 85.14 kB / 0.5613 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.466e-05/0.6797, allocations: 3.984 kB / 0.5613 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001063/0.6798, allocations: 7.625 kB / 0.5613 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.6799, allocations: 11.94 kB / 0.5614 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.6799, allocations: 4 kB / 0.5614 GB, free: 13.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001019/0.68, allocations: 101.6 kB / 0.5615 GB, free: 13 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6801, allocations: 0 / 0.5615 GB, free: 13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003104/0.6804, allocations: 27.03 kB / 0.5615 GB, free: 12.98 MB / 378.7 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,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007242/0.6811, allocations: 0.6962 MB / 0.5622 GB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.6814, allocations: 65.98 kB / 0.5622 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6814, allocations: 0 / 0.5622 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.6815, allocations: 34.86 kB / 0.5623 GB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.6817, allocations: 18.75 kB / 0.5623 GB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007366/0.6825, allocations: 233.2 kB / 0.5625 GB, free: 11.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.6829, allocations: 0.7042 MB / 0.5632 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.005e-05/0.683, allocations: 32.05 kB / 0.5632 GB, free: 11.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.683, allocations: 0 / 0.5632 GB, free: 11.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.594/3.277, allocations: 1.783 MB / 0.565 GB, free: 9.438 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat