Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 100.7 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 196.5 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2103/0.2103, allocations: 45.92 MB / 344.1 MB, free: 12.06 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002862, allocations: 11.94 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1322, allocations: 63.47 MB / 481.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.001839/0.1341, allocations: 1.375 MB / 483 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009567/0.135, allocations: 0.5614 MB / 483.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.225e-05/0.1351, allocations: 0 / 483.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.386e-05/0.1352, allocations: 3.938 kB / 483.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.206e-05/0.1353, allocations: 19.84 kB / 483.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.1356, allocations: 51.89 kB / 483.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001521/0.1357, allocations: 95.7 kB / 483.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.1359, allocations: 25.11 kB / 483.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.136, allocations: 43.77 kB / 483.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.1362, allocations: 39.78 kB / 483.8 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.1362, allocations: 4 kB / 483.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.098e-05/0.1363, allocations: 8 kB / 483.9 MB, free: 3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.12e-05/0.1363, allocations: 23.91 kB / 483.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.828e-05/0.1364, allocations: 45.64 kB / 483.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.1366, allocations: 92.05 kB / 484 MB, free: 2.836 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1366, allocations: 0 / 484 MB, free: 2.836 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1366, allocations: 0 / 484 MB, free: 2.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1366, allocations: 0 / 484 MB, free: 2.836 MB / 350.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.0006857/0.1373, allocations: 398.9 kB / 484.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.1373, allocations: 8.031 kB / 484.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.299e-05/0.1374, allocations: 46.55 kB / 484.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.1376, allocations: 39.73 kB / 484.5 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.1378, allocations: 195.5 kB / 484.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.1379, allocations: 8 kB / 484.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.1379, allocations: 11.91 kB / 484.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002155/0.1381, allocations: 93.58 kB / 484.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.1381, allocations: 4 kB / 484.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.1382, allocations: 11.98 kB / 484.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1382, allocations: 0 / 484.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.1383, allocations: 59.89 kB / 484.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005786/0.1389, allocations: 388.5 kB / 485.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.1391, allocations: 58.56 kB / 485.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.748e-05/0.1391, allocations: 28.98 kB / 485.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.1392, allocations: 7.953 kB / 485.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001966/0.1394, allocations: 103.3 kB / 485.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.1394, allocations: 0 / 485.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003364/0.1397, allocations: 129.5 kB / 485.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.1398, allocations: 59.39 kB / 485.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.1399, allocations: 146.3 kB / 485.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.14, allocations: 29.7 kB / 485.8 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.1401, allocations: 108.1 kB / 485.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.1402, allocations: 31.62 kB / 485.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.612e-06/0.1402, allocations: 4 kB / 485.9 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1403, allocations: 318.8 kB / 486.3 MB, free: 380 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.516e-05/0.1404, allocations: 31.98 kB / 486.3 MB, free: 348 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.1405, allocations: 86.47 kB / 486.4 MB, free: 236 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.014e-05/0.1406, allocations: 39.98 kB / 486.4 MB, free: 196 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.1406, allocations: 0 / 486.4 MB, free: 196 kB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002637/0.1409, allocations: 153.8 kB / 486.6 MB, free: 36 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.1409, allocations: 7.984 kB / 486.6 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1409, allocations: 11.92 kB / 486.6 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.141, allocations: 4 kB / 486.6 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.1411, allocations: 27.97 kB / 486.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.1411, allocations: 4 kB / 486.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.1412, allocations: 12 kB / 486.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.1412, allocations: 4 kB / 486.6 MB, free: 15.96 MB / 366.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 ($PRE.mean1.y_last,mean1.y_last,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y_last,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001149/0.1413, allocations: 133.7 kB / 486.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.549e-05/0.1414, allocations: 15.84 kB / 486.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.378e-05/0.1414, allocations: 12.72 kB / 486.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1414, allocations: 0 / 486.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1414, allocations: 96 / 486.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1414, allocations: 3.984 kB / 486.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002613/0.1417, allocations: 209.5 kB / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1417, allocations: 0 / 487 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.807e-05/0.1418, allocations: 11.98 kB / 487 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1418, allocations: 8 kB / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.1419, allocations: 3.953 kB / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1419, allocations: 0 / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1419, allocations: 0 / 487 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003358/0.1422, allocations: 168.9 kB / 487.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.1423, allocations: 89.09 kB / 487.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.1423, allocations: 8 kB / 487.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.272e-05/0.1424, allocations: 11.95 kB / 487.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.1424, allocations: 7.984 kB / 487.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.1424, allocations: 4 kB / 487.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.897e-05/0.1425, allocations: 119.3 kB / 487.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1425, allocations: 0 / 487.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1428, allocations: 27.84 kB / 487.4 MB, free: 15.05 MB / 366.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 (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.0006431/0.1434, allocations: 0.7027 MB / 488.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002223/0.1436, allocations: 88.02 kB / 488.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1437, allocations: 0 / 488.2 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.156e-05/0.1438, allocations: 31.98 kB / 488.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.144, allocations: 19.78 kB / 488.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.1454, allocations: 0.8002 MB / 489.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.1458, allocations: 0.7041 MB / 489.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.139e-05/0.1459, allocations: 16.41 kB / 489.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.02e-05/0.1459, allocations: 31.42 kB / 489.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1459, allocations: 0 / 489.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01468/0.1606, allocations: 2.155 MB / 492 MB, free: 10.48 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.1609, allocations: 180.5 kB / 492.2 MB, free: 10.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/1.923, allocations: 0 / 492.2 MB, free: 10.23 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat