Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_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.001365/0.001365, allocations: 183.5 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.673/1.673, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0009091/0.0009093, allocations: 92.75 kB / 267 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4751/0.4751, allocations: 43.48 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.119e-05/3.121e-05, allocations: 0 / 425.4 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1491, allocations: 58.83 MB / 484.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4434/0.5926, allocations: 85.76 MB / 0.5566 GB, free: 17.88 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001854/0.5928, allocations: 61.36 kB / 0.5567 GB, free: 17.86 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004725/0.5975, allocations: 1.694 MB / 0.5583 GB, free: 16.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5976, allocations: 0 / 0.5583 GB, free: 16.79 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.5976, allocations: 4 kB / 0.5584 GB, free: 16.79 MB / 394.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.0004523/0.5981, allocations: 388.5 kB / 0.5587 GB, free: 16.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.5981, allocations: 8.031 kB / 0.5587 GB, free: 16.38 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.193e-05/0.5982, allocations: 47.05 kB / 0.5588 GB, free: 16.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.5982, allocations: 9.453 kB / 0.5588 GB, free: 16.33 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.5984, allocations: 204.9 kB / 0.559 GB, free: 16.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.5985, allocations: 7.938 kB / 0.559 GB, free: 16.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.574e-05/0.5985, allocations: 13.3 kB / 0.559 GB, free: 16.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.5987, allocations: 76.45 kB / 0.5591 GB, free: 16.04 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.5987, allocations: 5.172 kB / 0.5591 GB, free: 16.04 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.5987, allocations: 4.875 kB / 0.5591 GB, free: 16.04 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.5987, allocations: 4 kB / 0.5591 GB, free: 16.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.454e-05/0.5988, allocations: 38.66 kB / 0.5591 GB, free: 16.01 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000494/0.5993, allocations: 371 kB / 0.5595 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.105e-05/0.5994, allocations: 63.62 kB / 0.5595 GB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.894e-05/0.5995, allocations: 22.28 kB / 0.5596 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.5995, allocations: 0 / 0.5596 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001478/0.5997, allocations: 99.48 kB / 0.5597 GB, free: 15.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.273e-06/0.5997, allocations: 0 / 0.5597 GB, free: 15.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002096/0.5999, allocations: 95.5 kB / 0.5597 GB, free: 15.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.5999, allocations: 52.86 kB / 0.5598 GB, free: 15.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.684e-05/0.6, allocations: 132.4 kB / 0.5599 GB, free: 15.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.6, allocations: 26.88 kB / 0.5599 GB, free: 15.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.955e-05/0.6001, allocations: 100.4 kB / 0.56 GB, free: 15.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.6001, allocations: 29.44 kB / 0.5601 GB, free: 15.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.6001, allocations: 0 / 0.5601 GB, free: 15.12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.6002, allocations: 326 kB / 0.5604 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.683e-05/0.6002, allocations: 15.88 kB / 0.5604 GB, free: 14.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.917e-05/0.6003, allocations: 82.72 kB / 0.5605 GB, free: 14.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.626e-05/0.6004, allocations: 33.84 kB / 0.5605 GB, free: 14.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.6004, allocations: 0 / 0.5605 GB, free: 14.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001674/0.6005, allocations: 135.6 kB / 0.5606 GB, free: 14.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.6006, allocations: 7.953 kB / 0.5606 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.6006, allocations: 5.594 kB / 0.5606 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.6006, allocations: 0 / 0.5606 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.6007, allocations: 28.06 kB / 0.5607 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.6007, allocations: 9.359 kB / 0.5607 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.818e-05/0.6008, allocations: 11.19 kB / 0.5607 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.6008, allocations: 9.453 kB / 0.5607 GB, free: 14.51 MB / 394.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 5.452e-05/0.6009, allocations: 112.4 kB / 0.5608 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.6009, allocations: 7.906 kB / 0.5608 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.652e-05/0.601, allocations: 17.78 kB / 0.5608 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.601, allocations: 5.781 kB / 0.5608 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.601, allocations: 96 / 0.5608 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.601, allocations: 8.5 kB / 0.5609 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001212/0.6011, allocations: 202.8 kB / 0.561 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.6011, allocations: 3.281 kB / 0.561 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.176e-05/0.6012, allocations: 15.31 kB / 0.5611 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.6012, allocations: 4 kB / 0.5611 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.6012, allocations: 1.312 kB / 0.5611 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.6012, allocations: 3.953 kB / 0.5611 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.6013, allocations: 0 / 0.5611 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.6015, allocations: 152.1 kB / 0.5612 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.632e-05/0.6015, allocations: 85.05 kB / 0.5613 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.6015, allocations: 8.969 kB / 0.5613 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.388e-05/0.6016, allocations: 3.281 kB / 0.5613 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-05/0.6017, allocations: 14.61 kB / 0.5613 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.6017, allocations: 5.594 kB / 0.5613 GB, free: 13.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.693e-05/0.6017, allocations: 104.5 kB / 0.5614 GB, free: 13.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6017, allocations: 0 / 0.5614 GB, free: 13.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.6019, allocations: 23.88 kB / 0.5614 GB, free: 13.78 MB / 394.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.0003679/0.6023, allocations: 0.691 MB / 0.5621 GB, free: 13.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001355/0.6025, allocations: 61.84 kB / 0.5622 GB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.6025, allocations: 4.5 kB / 0.5622 GB, free: 13.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.255e-05/0.6025, allocations: 32.94 kB / 0.5622 GB, free: 13.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.6027, allocations: 13.56 kB / 0.5622 GB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000479/0.6032, allocations: 210.6 kB / 0.5624 GB, free: 12.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.6033, allocations: 0.7104 MB / 0.5631 GB, free: 12.11 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.047e-05/0.6034, allocations: 11.38 kB / 0.5631 GB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.469e-05/0.6034, allocations: 33.44 kB / 0.5632 GB, free: 12.09 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6035, allocations: 0 / 0.5632 GB, free: 12.09 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01212/0.6156, allocations: 1.991 MB / 0.5651 GB, free: 10.89 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000143/0.6158, allocations: 143.2 kB / 0.5652 GB, free: 10.66 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/2.225, allocations: 4 kB / 0.5653 GB, free: 10.66 MB / 394.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat