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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009628/0.0009628, allocations: 179.8 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008194/0.0008194, allocations: 82.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.734e-05/1.738e-05, allocations: 0 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08443, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3226/0.4071, allocations: 75.57 MB / 438.7 MB, free: 4.051 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.4074, allocations: 64.28 kB / 438.8 MB, free: 4.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003977/0.4114, allocations: 1.452 MB / 440.2 MB, free: 2.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4114, allocations: 3.938 kB / 440.2 MB, free: 2.766 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.4114, allocations: 3.938 kB / 440.2 MB, free: 2.762 MB / 314.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.0004474/0.4119, allocations: 368.5 kB / 440.6 MB, free: 2.363 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.4119, allocations: 12.03 kB / 440.6 MB, free: 2.352 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.109e-05/0.412, allocations: 11.09 kB / 440.6 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.4121, allocations: 171 kB / 440.8 MB, free: 2.137 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.4122, allocations: 0 / 440.8 MB, free: 2.137 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.4122, allocations: 7.953 kB / 440.8 MB, free: 2.129 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001005/0.4123, allocations: 32.55 kB / 440.8 MB, free: 2.105 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001737/0.4125, allocations: 95.8 kB / 440.9 MB, free: 2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.4125, allocations: 0 / 440.9 MB, free: 2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.4125, allocations: 0 / 440.9 MB, free: 2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.4125, allocations: 0 / 440.9 MB, free: 2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005939/0.4131, allocations: 0.612 MB / 441.5 MB, free: 1.363 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.4133, allocations: 111.7 kB / 441.7 MB, free: 1.219 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.901e-05/0.4133, allocations: 37.42 kB / 441.7 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.4134, allocations: 0 / 441.7 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.4134, allocations: 42.5 kB / 441.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.4134, allocations: 0 / 441.7 MB, free: 1.121 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002478/0.4137, allocations: 75.33 kB / 441.8 MB, free: 1.051 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.225e-05/0.4137, allocations: 154.2 kB / 442 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.401e-05/0.4138, allocations: 107.7 kB / 442.1 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.4139, allocations: 29.86 kB / 442.1 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.12e-05/0.4139, allocations: 95.59 kB / 442.2 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.414, allocations: 15.44 kB / 442.2 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-06/0.414, allocations: 0 / 442.2 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4141, allocations: 321.2 kB / 442.5 MB, free: 304 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.22e-05/0.4141, allocations: 7.375 kB / 442.5 MB, free: 300 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.216e-05/0.4142, allocations: 43.91 kB / 442.6 MB, free: 244 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.286e-05/0.4142, allocations: 15.31 kB / 442.6 MB, free: 232 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.4142, allocations: 0 / 442.6 MB, free: 232 kB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000109/0.4144, allocations: 69.97 kB / 442.6 MB, free: 164 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.4144, allocations: 4 kB / 442.6 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.4144, allocations: 4 kB / 442.7 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.4144, allocations: 4.156 kB / 442.7 MB, free: 152 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.4145, allocations: 23.86 kB / 442.7 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.4145, allocations: 0 / 442.7 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.907e-05/0.4146, allocations: 11.98 kB / 442.7 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.4146, allocations: 4 kB / 442.7 MB, free: 112 kB / 314.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 8.072e-05/0.4147, allocations: 104.9 kB / 442.8 MB, free: 0 / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001834/0.4149, allocations: 81.84 kB / 442.9 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.819e-05/0.415, allocations: 3.906 kB / 442.9 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.415, allocations: 18.55 kB / 442.9 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.415, allocations: 4 kB / 442.9 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.4151, allocations: 3.984 kB / 442.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.4151, allocations: 0 / 442.9 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003064/0.4154, allocations: 160.1 kB / 443.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4154, allocations: 4 kB / 443.1 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.058e-05/0.4155, allocations: 16.14 kB / 443.1 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.4155, allocations: 4 kB / 443.1 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.4155, allocations: 0 / 443.1 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.4155, allocations: 4 kB / 443.1 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4155, allocations: 0 / 443.1 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003297/0.4158, allocations: 0.5085 MB / 443.6 MB, free: 15.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.242e-05/0.4159, allocations: 85.02 kB / 443.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.4159, allocations: 3.953 kB / 443.7 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.4161, allocations: 8 kB / 443.7 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.378e-05/0.4162, allocations: 15.42 kB / 443.7 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-06/0.4162, allocations: 0 / 443.7 MB, free: 15.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.138e-05/0.4162, allocations: 92.3 kB / 443.8 MB, free: 14.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4163, allocations: 0 / 443.8 MB, free: 14.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003621/0.4166, allocations: 8 kB / 443.8 MB, free: 14.93 MB / 330.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.000616/0.4172, allocations: 1.308 MB / 445.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001031/0.4174, allocations: 38.67 kB / 445.2 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4174, allocations: 3.938 kB / 445.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.276e-05/0.4174, allocations: 23.06 kB / 445.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.4177, allocations: 7.891 kB / 445.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005359/0.4182, allocations: 155.7 kB / 445.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.4185, allocations: 0.6963 MB / 446 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.256e-05/0.4186, allocations: 0.5 kB / 446 MB, free: 12.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.2e-05/0.4186, allocations: 25.23 kB / 446.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4186, allocations: 0 / 446.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.4368, allocations: 1.039 MB / 447.1 MB, free: 11.57 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.437, allocations: 121.6 kB / 447.2 MB, free: 11.37 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.433/1.87, allocations: 0 / 447.2 MB, free: 11.37 MB / 330.7 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) 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