Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.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.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001461/0.001461, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002288/0.002288, allocations: 205.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2402/0.2402, allocations: 45.92 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002753, allocations: 8 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.126, allocations: 63.47 MB / 481.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00229/0.1284, allocations: 1.893 MB / 483.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.1297, allocations: 0.799 MB / 484.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1298, allocations: 4 kB / 484.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.1299, allocations: 23.72 kB / 484.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.1301, allocations: 63.75 kB / 484.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.1304, allocations: 107.8 kB / 484.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.1306, allocations: 215.6 kB / 484.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.1309, allocations: 102.6 kB / 484.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000201/0.1311, allocations: 111.5 kB / 484.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002072/0.1313, allocations: 127.3 kB / 484.9 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.601e-05/0.1313, allocations: 12 kB / 485 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.165e-05/0.1314, allocations: 23.98 kB / 485 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.1315, allocations: 55.75 kB / 485 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.944e-05/0.1316, allocations: 81.52 kB / 485.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.132, allocations: 287.5 kB / 485.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.132, allocations: 0 / 485.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.132, allocations: 0 / 485.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.132, allocations: 0 / 485.4 MB, free: 1.367 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001217/0.1332, allocations: 0.5835 MB / 486 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.1333, allocations: 8.031 kB / 486 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.1335, allocations: 75.08 kB / 486.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005457/0.134, allocations: 91.39 kB / 486.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005978/0.1346, allocations: 350.8 kB / 486.5 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.1347, allocations: 24.66 kB / 486.5 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.743e-05/0.1347, allocations: 32 kB / 486.5 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005704/0.1353, allocations: 294 kB / 486.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.1353, allocations: 7.844 kB / 486.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.1354, allocations: 12 kB / 486.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.1354, allocations: 4 kB / 486.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004436/0.1358, allocations: 210.5 kB / 487.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.1373, allocations: 0.8778 MB / 487.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003976/0.1377, allocations: 206.8 kB / 488.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.49e-05/0.1377, allocations: 4 kB / 488.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004233/0.1382, allocations: 239.5 kB / 488.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.234e-06/0.1382, allocations: 0 / 488.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008198/0.139, allocations: 393.2 kB / 488.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.1391, allocations: 55.41 kB / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.1394, allocations: 262.6 kB / 489.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.1394, allocations: 41.69 kB / 489.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.1396, allocations: 188.7 kB / 489.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.189e-05/0.1396, allocations: 94.61 kB / 489.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.897e-05/0.1397, allocations: 12 kB / 489.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1398, allocations: 342.8 kB / 489.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.14, allocations: 100.7 kB / 489.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/0.1403, allocations: 222.6 kB / 490.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.1406, allocations: 131.8 kB / 490.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.237e-06/0.1406, allocations: 7.938 kB / 490.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006492/0.1413, allocations: 381.2 kB / 490.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.1413, allocations: 8 kB / 490.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1413, allocations: 4 kB / 490.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.1413, allocations: 8 kB / 490.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.1417, allocations: 75.89 kB / 490.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-05/0.1417, allocations: 15.92 kB / 490.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001813/0.1419, allocations: 43.78 kB / 490.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.1419, allocations: 16 kB / 490.7 MB, free: 11.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001979/0.1421, allocations: 166.8 kB / 490.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.882e-05/0.1421, allocations: 23.72 kB / 490.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006794/0.1428, allocations: 348.9 kB / 491.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.1428, allocations: 0 / 491.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.1429, allocations: 4 kB / 491.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1429, allocations: 0 / 491.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009522/0.1438, allocations: 0.744 MB / 492 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1438, allocations: 0 / 492 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.1441, allocations: 55.95 kB / 492.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.1441, allocations: 7.938 kB / 492.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.1441, allocations: 4.094 kB / 492.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.1441, allocations: 7.938 kB / 492.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.101e-05/0.1442, allocations: 7.938 kB / 492.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008419/0.145, allocations: 0.5384 MB / 492.6 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.605e-05/0.1451, allocations: 108.7 kB / 492.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.752e-05/0.1452, allocations: 8.062 kB / 492.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.1453, allocations: 23.98 kB / 492.8 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.1454, allocations: 15.97 kB / 492.8 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.722e-05/0.1454, allocations: 19.94 kB / 492.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.1456, allocations: 178 kB / 493 MB, free: 9.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.1456, allocations: 0 / 493 MB, free: 9.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003829/0.146, allocations: 79.73 kB / 493.1 MB, free: 9.312 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001103/0.1471, allocations: 1.087 MB / 494.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005155/0.1477, allocations: 268.4 kB / 494.4 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1477, allocations: 0 / 494.4 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.1479, allocations: 136.3 kB / 494.5 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.1482, allocations: 28.55 kB / 494.6 MB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002454/0.1506, allocations: 4.004 MB / 498.6 MB, free: 3.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.151, allocations: 0.7997 MB / 499.4 MB, free: 2.809 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.1512, allocations: 42.95 kB / 499.4 MB, free: 2.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.1514, allocations: 123.4 kB / 499.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1514, allocations: 0 / 499.5 MB, free: 2.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01453/0.1659, allocations: 5.134 MB / 0.4928 GB, free: 13.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001511/0.1661, allocations: 161.5 kB / 0.493 GB, free: 13.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/1.941, allocations: 0 / 0.493 GB, free: 13.37 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat