Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.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 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 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 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.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean",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.001011/0.001011, allocations: 96.94 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 173.5 kB / 16.58 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 222.8 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3428/0.3428, allocations: 43.54 MB / 314.6 MB, free: 8.836 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005028/0.0005028, allocations: 20 kB / 384 MB, free: 7.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1215, allocations: 58.86 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00232/0.1239, allocations: 1.85 MB / 444.7 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1252, allocations: 0.7531 MB / 445.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.1255, allocations: 4 kB / 445.5 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.1256, allocations: 23.72 kB / 445.5 MB, free: 10.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.1259, allocations: 39.66 kB / 445.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.1262, allocations: 107.8 kB / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004263/0.1267, allocations: 315.1 kB / 446 MB, free: 9.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.1269, allocations: 106.6 kB / 446.1 MB, free: 9.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.1271, allocations: 99.5 kB / 446.2 MB, free: 9.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1273, allocations: 111.4 kB / 446.3 MB, free: 9.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.1274, allocations: 12 kB / 446.3 MB, free: 9.539 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.178e-05/0.1274, allocations: 8 kB / 446.3 MB, free: 9.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.126e-05/0.1275, allocations: 55.75 kB / 446.3 MB, free: 9.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.487e-05/0.1275, allocations: 73.52 kB / 446.4 MB, free: 9.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002338/0.1278, allocations: 255.6 kB / 446.7 MB, free: 9.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1278, allocations: 0 / 446.7 MB, free: 9.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1278, allocations: 0 / 446.7 MB, free: 9.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.904e-06/0.1278, allocations: 4 kB / 446.7 MB, free: 9.145 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009526/0.1288, allocations: 0.5481 MB / 447.2 MB, free: 8.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.1288, allocations: 8.031 kB / 447.2 MB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.129, allocations: 79 kB / 447.3 MB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.336e-05/0.1291, allocations: 43.48 kB / 447.3 MB, free: 8.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.1295, allocations: 329.9 kB / 447.7 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.1296, allocations: 24.56 kB / 447.7 MB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.1296, allocations: 35.91 kB / 447.7 MB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.1302, allocations: 276.8 kB / 448 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.1302, allocations: 0 / 448 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.1302, allocations: 15.98 kB / 448 MB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1303, allocations: 8 kB / 448 MB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.1307, allocations: 206.1 kB / 448.2 MB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.132, allocations: 0.8145 MB / 449 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.1324, allocations: 214.8 kB / 449.2 MB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.1326, allocations: 104.8 kB / 449.3 MB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.1327, allocations: 4 kB / 449.3 MB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003832/0.133, allocations: 231.1 kB / 449.6 MB, free: 6.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.714e-06/0.1331, allocations: 0 / 449.6 MB, free: 6.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007419/0.1338, allocations: 393.1 kB / 450 MB, free: 5.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.1339, allocations: 59.41 kB / 450 MB, free: 5.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.1341, allocations: 229 kB / 450.2 MB, free: 5.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.1341, allocations: 45.69 kB / 450.3 MB, free: 5.312 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.1343, allocations: 176.4 kB / 450.5 MB, free: 5.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.753e-05/0.1344, allocations: 98.56 kB / 450.5 MB, free: 5.039 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.549e-05/0.1344, allocations: 8 kB / 450.6 MB, free: 5.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1345, allocations: 338.8 kB / 450.9 MB, free: 4.691 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.1348, allocations: 96.69 kB / 451 MB, free: 4.594 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.135, allocations: 226.3 kB / 451.2 MB, free: 4.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.1353, allocations: 123.9 kB / 451.3 MB, free: 4.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1353, allocations: 0 / 451.3 MB, free: 4.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006736/0.136, allocations: 389.2 kB / 451.7 MB, free: 3.805 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.136, allocations: 4 kB / 451.7 MB, free: 3.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.136, allocations: 4 kB / 451.7 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.136, allocations: 8 kB / 451.7 MB, free: 3.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002736/0.1363, allocations: 75.89 kB / 451.8 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.1363, allocations: 11.89 kB / 451.8 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001658/0.1365, allocations: 35.75 kB / 451.8 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.1365, allocations: 27.98 kB / 451.9 MB, free: 3.641 MB / 382.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,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * 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.0001774/0.1367, allocations: 165.5 kB / 452 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.1368, allocations: 27.7 kB / 452.1 MB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00069/0.1375, allocations: 327.4 kB / 452.4 MB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1375, allocations: 4 kB / 452.4 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1375, allocations: 0 / 452.4 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.1375, allocations: 7.938 kB / 452.4 MB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009956/0.1385, allocations: 0.7247 MB / 453.1 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1385, allocations: 11.94 kB / 453.1 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002514/0.1388, allocations: 47.95 kB / 453.2 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.1388, allocations: 8 kB / 453.2 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.1388, allocations: 7.938 kB / 453.2 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.1388, allocations: 7.938 kB / 453.2 MB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1389, allocations: 3.953 kB / 453.2 MB, free: 2.238 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000835/0.1397, allocations: 0.5306 MB / 453.7 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.945e-05/0.1398, allocations: 104.8 kB / 453.8 MB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.1398, allocations: 12.06 kB / 453.8 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.14, allocations: 15.98 kB / 453.9 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.1401, allocations: 31.92 kB / 453.9 MB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.1401, allocations: 11.98 kB / 453.9 MB, free: 1.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001589/0.1403, allocations: 164.5 kB / 454.1 MB, free: 1.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1403, allocations: 0 / 454.1 MB, free: 1.336 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003933/0.1407, allocations: 75.69 kB / 454.1 MB, free: 1.262 MB / 382.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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.00127/0.142, allocations: 1.08 MB / 455.2 MB, free: 160 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1909/0.3329, allocations: 268 kB / 455.5 MB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.333, allocations: 0 / 455.5 MB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.3333, allocations: 133.4 kB / 455.6 MB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.3337, allocations: 31.92 kB / 455.6 MB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.336, allocations: 1.851 MB / 457.5 MB, free: 45.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.3362, allocations: 0.7878 MB / 458.3 MB, free: 44.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.3364, allocations: 44.72 kB / 458.3 MB, free: 44.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.3365, allocations: 108.6 kB / 458.4 MB, free: 44.57 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3365, allocations: 0 / 458.4 MB, free: 44.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01435/0.3509, allocations: 4.902 MB / 463.3 MB, free: 44.25 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001242/0.3511, allocations: 164.6 kB / 463.5 MB, free: 44.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.165, allocations: 0 / 463.5 MB, free: 44.01 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Mean.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat