Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.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) 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(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",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.0009038/0.0009038, allocations: 98.58 kB / 16.95 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 183.7 kB / 17.84 MB, free: 6.004 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.71/1.71, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.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.0005004/0.0005006, allocations: 8 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.121, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002275/0.1233, allocations: 1.291 MB / 329.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009228/0.1243, allocations: 444.2 kB / 330.2 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.005e-05/0.1244, allocations: 0 / 330.2 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.184e-05/0.1244, allocations: 3.938 kB / 330.2 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.1246, allocations: 11.92 kB / 330.2 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.1247, allocations: 11.98 kB / 330.2 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.1249, allocations: 55.78 kB / 330.2 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.1251, allocations: 35.91 kB / 330.3 MB, free: 2.133 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1252, allocations: 27.86 kB / 330.3 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.499e-05/0.1253, allocations: 23.84 kB / 330.3 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.1253, allocations: 4 kB / 330.3 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.384e-05/0.1253, allocations: 0 / 330.3 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.949e-05/0.1253, allocations: 7.938 kB / 330.3 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.181e-05/0.1254, allocations: 33.7 kB / 330.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.1255, allocations: 40.19 kB / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1255, allocations: 0 / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1255, allocations: 0 / 330.4 MB, free: 1.992 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1255, allocations: 0 / 330.4 MB, free: 1.992 MB / 270.1 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.0008763/0.1264, allocations: 375.1 kB / 330.8 MB, free: 1.578 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.951e-05/0.1265, allocations: 15.95 kB / 330.8 MB, free: 1.562 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.6e-05/0.1266, allocations: 38.56 kB / 330.8 MB, free: 1.516 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.447e-05/0.1267, allocations: 7.906 kB / 330.8 MB, free: 1.508 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1269, allocations: 174.9 kB / 331 MB, free: 1.297 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.114e-05/0.127, allocations: 3.953 kB / 331 MB, free: 1.293 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.127, allocations: 8 kB / 331 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.1274, allocations: 125.9 kB / 331.1 MB, free: 1.141 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1274, allocations: 0 / 331.1 MB, free: 1.141 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.1274, allocations: 4 kB / 331.2 MB, free: 1.137 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1274, allocations: 0 / 331.2 MB, free: 1.137 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.1277, allocations: 67.89 kB / 331.2 MB, free: 1.07 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.1288, allocations: 0.642 MB / 331.9 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.129, allocations: 129 kB / 332 MB, free: 196 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.1291, allocations: 56.34 kB / 332 MB, free: 124 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.1292, allocations: 0 / 332 MB, free: 124 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.1292, allocations: 42.5 kB / 332.1 MB, free: 72 kB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/0.1292, allocations: 3.938 kB / 332.1 MB, free: 68 kB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005409/0.1298, allocations: 129.5 kB / 332.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.1299, allocations: 174.8 kB / 332.4 MB, free: 15.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.1301, allocations: 125.6 kB / 332.5 MB, free: 15.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.1301, allocations: 25.7 kB / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.292e-05/0.1302, allocations: 99.97 kB / 332.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.1303, allocations: 19.8 kB / 332.6 MB, free: 15.44 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/0.1303, allocations: 0 / 332.6 MB, free: 15.44 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001866/0.1305, allocations: 318.8 kB / 333 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.48e-05/0.1306, allocations: 35.97 kB / 333 MB, free: 15.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.1307, allocations: 52.28 kB / 333 MB, free: 15.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.582e-05/0.1308, allocations: 31.98 kB / 333.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1308, allocations: 0 / 333.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002512/0.1311, allocations: 109.6 kB / 333.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.1311, allocations: 8 kB / 333.2 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.1311, allocations: 0 / 333.2 MB, free: 14.87 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.1311, allocations: 4 kB / 333.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.1313, allocations: 11.98 kB / 333.2 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1313, allocations: 7.953 kB / 333.2 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.13e-05/0.1314, allocations: 16.02 kB / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.1314, allocations: 4 kB / 333.2 MB, free: 14.82 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.0001386/0.1315, allocations: 121.7 kB / 333.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.1317, allocations: 4 kB / 333.4 MB, free: 14.69 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.908e-05/0.1317, allocations: 15.48 kB / 333.4 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1317, allocations: 3.984 kB / 333.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1318, allocations: 4 kB / 333.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.1318, allocations: 3.953 kB / 333.4 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.1322, allocations: 185.5 kB / 333.6 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1323, allocations: 0 / 333.6 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.1323, allocations: 16 kB / 333.6 MB, free: 14.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.064e-05/0.1324, allocations: 7.984 kB / 333.6 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.1324, allocations: 4 kB / 333.6 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.1324, allocations: 0 / 333.6 MB, free: 14.41 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.1324, allocations: 4 kB / 333.6 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005869/0.133, allocations: 0.4888 MB / 334.1 MB, free: 13.89 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.251e-05/0.1331, allocations: 85.02 kB / 334.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.1331, allocations: 4 kB / 334.2 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.1333, allocations: 15.92 kB / 334.2 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.1334, allocations: 7.984 kB / 334.2 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.1334, allocations: 15.89 kB / 334.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.186e-05/0.1335, allocations: 87.28 kB / 334.3 MB, free: 13.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1335, allocations: 0 / 334.3 MB, free: 13.66 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004027/0.1339, allocations: 8 kB / 334.3 MB, free: 13.66 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0009144/0.1348, allocations: 1.03 MB / 335.3 MB, free: 12.6 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002442/0.1351, allocations: 76.09 kB / 335.4 MB, free: 12.52 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1351, allocations: 0 / 335.4 MB, free: 12.52 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.1352, allocations: 35.97 kB / 335.4 MB, free: 12.49 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005484/0.1357, allocations: 15.88 kB / 335.5 MB, free: 12.47 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007791/0.1365, allocations: 262 kB / 335.7 MB, free: 12.17 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004112/0.1369, allocations: 0.6965 MB / 336.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.858e-05/0.137, allocations: 3.984 kB / 336.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.688e-05/0.137, allocations: 23.38 kB / 336.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1371, allocations: 0 / 336.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01225/0.1493, allocations: 1.342 MB / 337.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002038/0.1496, allocations: 176.2 kB / 338 MB, free: 9.84 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.098, allocations: 0 / 338 MB, free: 9.84 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat