Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001542/0.001543, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001086/0.001086, allocations: 96.05 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.581e-05/2.583e-05, allocations: 4 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1484, allocations: 51.47 MB / 395.3 MB, free: 4.691 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.5271, allocations: 77.05 MB / 472.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001667/0.5274, allocations: 64.44 kB / 472.4 MB, free: 14.06 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004147/0.5315, allocations: 1.602 MB / 474 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5315, allocations: 0 / 474 MB, free: 13.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.5316, allocations: 0 / 474 MB, free: 13.07 MB / 346.7 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.0003427/0.5319, allocations: 375.9 kB / 474.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.532, allocations: 16.03 kB / 474.4 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.5321, allocations: 19.41 kB / 474.4 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.5322, allocations: 171.4 kB / 474.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.5323, allocations: 4.547 kB / 474.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.5323, allocations: 4 kB / 474.5 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.907e-05/0.5324, allocations: 30.3 kB / 474.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.5325, allocations: 95.75 kB / 474.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.5325, allocations: 0 / 474.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.5326, allocations: 0 / 474.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.5326, allocations: 4 kB / 474.7 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.5331, allocations: 0.6109 MB / 475.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.164e-05/0.5332, allocations: 104.8 kB / 475.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.86e-05/0.5332, allocations: 36.61 kB / 475.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.5332, allocations: 0 / 475.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.779e-05/0.5333, allocations: 46.62 kB / 475.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.5333, allocations: 0 / 475.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002337/0.5335, allocations: 68.81 kB / 475.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.5336, allocations: 154.9 kB / 475.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.331e-05/0.5336, allocations: 107.6 kB / 475.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.118e-05/0.5337, allocations: 27.3 kB / 475.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.5337, allocations: 106.2 kB / 475.9 MB, free: 10.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.5337, allocations: 16.23 kB / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.5337, allocations: 0 / 475.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.409e-05/0.5338, allocations: 320.9 kB / 476.3 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.176e-05/0.5338, allocations: 8.141 kB / 476.3 MB, free: 10.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.308e-05/0.5339, allocations: 40.77 kB / 476.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.025e-05/0.5339, allocations: 16.95 kB / 476.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5339, allocations: 0 / 476.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.801e-05/0.534, allocations: 68.61 kB / 476.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.534, allocations: 4 kB / 476.4 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5341, allocations: 4 kB / 476.4 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.5341, allocations: 0.7031 kB / 476.4 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.5342, allocations: 22.53 kB / 476.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.5342, allocations: 0.7031 kB / 476.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.675e-05/0.5343, allocations: 14.05 kB / 476.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.5343, allocations: 4 kB / 476.4 MB, free: 10.49 MB / 346.7 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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete 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 6.069e-05/0.5344, allocations: 111.5 kB / 476.5 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001606/0.5345, allocations: 80.75 kB / 476.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.087e-05/0.5346, allocations: 8.609 kB / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.5346, allocations: 8.375 kB / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.5346, allocations: 4 kB / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.5347, allocations: 0.6094 kB / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.5347, allocations: 0 / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.535, allocations: 156.3 kB / 476.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.535, allocations: 4 kB / 476.8 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.5351, allocations: 18.14 kB / 476.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.5351, allocations: 4.125 kB / 476.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.5351, allocations: 0.5156 kB / 476.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.5351, allocations: 4.609 kB / 476.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.5351, allocations: 3.938 kB / 476.8 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000195/0.5353, allocations: 0.5016 MB / 477.3 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.369e-05/0.5353, allocations: 86.52 kB / 477.4 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.5354, allocations: 3.953 kB / 477.4 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.5356, allocations: 10.25 kB / 477.4 MB, free: 9.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.5356, allocations: 14.7 kB / 477.4 MB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.5356, allocations: 4 kB / 477.4 MB, free: 9.449 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.026e-05/0.5357, allocations: 86.83 kB / 477.5 MB, free: 9.371 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.153e-06/0.5357, allocations: 0 / 477.5 MB, free: 9.371 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003809/0.5361, allocations: 15.94 kB / 477.5 MB, free: 9.355 MB / 346.7 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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete 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.0003824/0.5365, allocations: 1.305 MB / 478.9 MB, free: 8.027 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.665e-05/0.5366, allocations: 35.22 kB / 478.9 MB, free: 8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5366, allocations: 0 / 478.9 MB, free: 8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.893e-05/0.5366, allocations: 23.92 kB / 478.9 MB, free: 7.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.5369, allocations: 11.64 kB / 478.9 MB, free: 7.977 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005267/0.5375, allocations: 153.5 kB / 479.1 MB, free: 7.801 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.5376, allocations: 0.6939 MB / 479.8 MB, free: 7.09 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.669e-05/0.5377, allocations: 5.125 kB / 479.8 MB, free: 7.086 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.025e-05/0.5377, allocations: 16.77 kB / 479.8 MB, free: 7.078 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5377, allocations: 0 / 479.8 MB, free: 7.078 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01948/0.5572, allocations: 1.038 MB / 480.8 MB, free: 6.492 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001369/0.5574, allocations: 121 kB / 480.9 MB, free: 6.301 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.514/2.072, allocations: 3.938 kB / 480.9 MB, free: 6.297 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat