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.0008949/0.0008948, allocations: 97.53 kB / 15.69 MB, free: 488 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.000865/0.000865, allocations: 170.4 kB / 16.56 MB, free: 6.379 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.703/1.703, allocations: 205.4 MB / 222.7 MB, free: 5.68 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.3667/0.3667, allocations: 43.54 MB / 314.5 MB, free: 8.738 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.0005721/0.0005722, allocations: 16 kB / 384 MB, free: 7.938 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1373, allocations: 58.85 MB / 442.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002857/0.1403, allocations: 1.831 MB / 444.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1418, allocations: 0.757 MB / 445.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.1421, allocations: 4 kB / 445.4 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.1423, allocations: 31.66 kB / 445.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002755/0.1425, allocations: 51.84 kB / 445.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.1429, allocations: 99.75 kB / 445.6 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003237/0.1432, allocations: 203.6 kB / 445.8 MB, free: 9.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002332/0.1435, allocations: 94.62 kB / 445.9 MB, free: 9.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.1436, allocations: 103.5 kB / 446 MB, free: 9.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001765/0.1438, allocations: 123.4 kB / 446.1 MB, free: 9.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.1439, allocations: 8 kB / 446.1 MB, free: 9.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.197e-05/0.1439, allocations: 12 kB / 446.1 MB, free: 9.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.987e-05/0.144, allocations: 51.75 kB / 446.2 MB, free: 9.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.296e-05/0.1441, allocations: 73.58 kB / 446.3 MB, free: 9.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.1443, allocations: 243.6 kB / 446.5 MB, free: 9.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.1443, allocations: 3.938 kB / 446.5 MB, free: 9.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1443, allocations: 0 / 446.5 MB, free: 9.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1443, allocations: 0 / 446.5 MB, free: 9.289 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.001007/0.1454, allocations: 0.552 MB / 447.1 MB, free: 8.684 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.1454, allocations: 12.03 kB / 447.1 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.1455, allocations: 74.98 kB / 447.1 MB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.8e-05/0.1456, allocations: 43.48 kB / 447.2 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004893/0.1461, allocations: 334 kB / 447.5 MB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.1461, allocations: 28.5 kB / 447.5 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.1462, allocations: 35.91 kB / 447.6 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004814/0.1467, allocations: 268.8 kB / 447.8 MB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1467, allocations: 4 kB / 447.8 MB, free: 7.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.1467, allocations: 16 kB / 447.9 MB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1468, allocations: 4 kB / 447.9 MB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004124/0.1472, allocations: 202.1 kB / 448.1 MB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001287/0.1485, allocations: 0.8185 MB / 448.9 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.1489, allocations: 210.8 kB / 449.1 MB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.1489, allocations: 8.422 kB / 449.1 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004018/0.1494, allocations: 235.1 kB / 449.3 MB, free: 6.297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.345e-06/0.1494, allocations: 0 / 449.3 MB, free: 6.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007749/0.1501, allocations: 381.1 kB / 449.7 MB, free: 5.918 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.1502, allocations: 67.39 kB / 449.8 MB, free: 5.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.1504, allocations: 225 kB / 450 MB, free: 5.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.1505, allocations: 37.64 kB / 450 MB, free: 5.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.1506, allocations: 176.4 kB / 450.2 MB, free: 5.395 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.62e-05/0.1507, allocations: 106.5 kB / 450.3 MB, free: 5.289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/0.1507, allocations: 8 kB / 450.3 MB, free: 5.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1508, allocations: 342.8 kB / 450.6 MB, free: 4.938 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.1511, allocations: 96.7 kB / 450.7 MB, free: 4.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.1514, allocations: 226.4 kB / 450.9 MB, free: 4.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.1516, allocations: 127.8 kB / 451.1 MB, free: 4.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1516, allocations: 0 / 451.1 MB, free: 4.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006362/0.1523, allocations: 384.9 kB / 451.4 MB, free: 4.051 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1523, allocations: 8 kB / 451.5 MB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.1523, allocations: 4 kB / 451.5 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.1523, allocations: 8 kB / 451.5 MB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.1526, allocations: 76.23 kB / 451.5 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.1526, allocations: 11.94 kB / 451.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.1528, allocations: 43.69 kB / 451.6 MB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.1529, allocations: 16 kB / 451.6 MB, free: 3.887 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.0001582/0.1531, allocations: 165.6 kB / 451.8 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/0.1531, allocations: 23.72 kB / 451.8 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006363/0.1537, allocations: 335.3 kB / 452.1 MB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1538, allocations: 8 kB / 452.1 MB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1538, allocations: 0 / 452.1 MB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1538, allocations: 4 kB / 452.1 MB, free: 3.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009249/0.1547, allocations: 0.7207 MB / 452.9 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1547, allocations: 7.938 kB / 452.9 MB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.155, allocations: 47.97 kB / 452.9 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-05/0.155, allocations: 0 / 452.9 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.155, allocations: 19.92 kB / 452.9 MB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.155, allocations: 0 / 452.9 MB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1551, allocations: 3.953 kB / 452.9 MB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008337/0.1559, allocations: 0.5384 MB / 453.5 MB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.346e-05/0.156, allocations: 100.8 kB / 453.6 MB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.156, allocations: 16.16 kB / 453.6 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.1562, allocations: 19.92 kB / 453.6 MB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.1563, allocations: 23.95 kB / 453.6 MB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.1563, allocations: 11.95 kB / 453.6 MB, free: 1.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.1565, allocations: 164.5 kB / 453.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1565, allocations: 0 / 453.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.1568, allocations: 79.67 kB / 453.9 MB, free: 1.508 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.001067/0.1579, allocations: 1.076 MB / 455 MB, free: 416 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004958/0.1584, allocations: 275.6 kB / 455.2 MB, free: 140 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1584, allocations: 0 / 455.2 MB, free: 140 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.1587, allocations: 133.3 kB / 455.4 MB, free: 8 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1643/0.323, allocations: 23.39 kB / 455.4 MB, free: 46.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.3246, allocations: 3.959 MB / 459.3 MB, free: 42.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.3248, allocations: 0.7897 MB / 460.1 MB, free: 42.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.325, allocations: 42.88 kB / 460.2 MB, free: 42.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.3251, allocations: 115.6 kB / 460.3 MB, free: 42.05 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3251, allocations: 0 / 460.3 MB, free: 42.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1897/0.5148, allocations: 4.753 MB / 465 MB, free: 41.7 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/0.5151, allocations: 159.7 kB / 465.2 MB, free: 41.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.349, allocations: 0 / 465.2 MB, free: 41.46 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