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.001518/0.001518, allocations: 199.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 227.2 MB / 245 MB, free: 7.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008453/0.0008453, allocations: 102.9 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001876/0.0001876, allocations: 8 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1727, allocations: 51.49 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0792/0.252, allocations: 77.79 MB / 487.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001736/0.2522, allocations: 63.97 kB / 487.3 MB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004065/0.2563, allocations: 1.62 MB / 489 MB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2563, allocations: 3.938 kB / 489 MB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.2563, allocations: 4 kB / 489 MB, free: 11.16 MB / 362.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.0003642/0.2567, allocations: 379.1 kB / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.2567, allocations: 11.97 kB / 489.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.2568, allocations: 38.56 kB / 489.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.2569, allocations: 23.89 kB / 489.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.257, allocations: 177 kB / 489.6 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.257, allocations: 8 kB / 489.6 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.257, allocations: 3.953 kB / 489.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.2572, allocations: 117.9 kB / 489.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.2573, allocations: 4 kB / 489.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.2573, allocations: 4 kB / 489.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2573, allocations: 0 / 489.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/0.2575, allocations: 63.89 kB / 489.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000523/0.258, allocations: 0.642 MB / 490.4 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.2582, allocations: 121 kB / 490.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.2582, allocations: 8 kB / 490.5 MB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.2582, allocations: 34.56 kB / 490.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.2582, allocations: 0 / 490.6 MB, free: 9.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004209/0.2587, allocations: 137.6 kB / 490.7 MB, free: 9.164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.2587, allocations: 158.6 kB / 490.9 MB, free: 8.973 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.989e-05/0.2588, allocations: 109 kB / 491 MB, free: 8.859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.2588, allocations: 33.7 kB / 491 MB, free: 8.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.128e-05/0.2589, allocations: 92.03 kB / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.2589, allocations: 19.73 kB / 491.1 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.2589, allocations: 4 kB / 491.1 MB, free: 8.703 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.334e-05/0.259, allocations: 322.8 kB / 491.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.905e-05/0.2591, allocations: 27.98 kB / 491.5 MB, free: 8.352 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.194e-05/0.2592, allocations: 48.28 kB / 491.5 MB, free: 8.289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.67e-05/0.2593, allocations: 43.91 kB / 491.6 MB, free: 8.246 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2593, allocations: 0 / 491.6 MB, free: 8.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002141/0.2595, allocations: 105.6 kB / 491.7 MB, free: 8.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2595, allocations: 8 kB / 491.7 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.2595, allocations: 0 / 491.7 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2595, allocations: 4 kB / 491.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.904e-05/0.2596, allocations: 11.94 kB / 491.7 MB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.2596, allocations: 7.984 kB / 491.7 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.558e-05/0.2597, allocations: 8 kB / 491.7 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.2597, allocations: 8.031 kB / 491.7 MB, free: 8.09 MB / 362.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 () * 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 7.335e-05/0.2598, allocations: 117.8 kB / 491.8 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.695e-05/0.2599, allocations: 15.83 kB / 491.8 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.801e-05/0.2599, allocations: 11.53 kB / 491.8 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.2599, allocations: 0 / 491.8 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.26, allocations: 4 kB / 491.8 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.26, allocations: 128 / 491.8 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003334/0.2603, allocations: 193.5 kB / 492 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2603, allocations: 0 / 492 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.471e-05/0.2604, allocations: 23.92 kB / 492.1 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.2604, allocations: 4 kB / 492.1 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.2604, allocations: 0 / 492.1 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2604, allocations: 0 / 492.1 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.864e-06/0.2604, allocations: 7.984 kB / 492.1 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.2608, allocations: 0.5376 MB / 492.6 MB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.2608, allocations: 89.03 kB / 492.7 MB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.2608, allocations: 7.953 kB / 492.7 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.2611, allocations: 8 kB / 492.7 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.2611, allocations: 7.984 kB / 492.7 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.2611, allocations: 4 kB / 492.7 MB, free: 6.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.022e-05/0.2612, allocations: 94.11 kB / 492.8 MB, free: 6.855 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2612, allocations: 4 kB / 492.8 MB, free: 6.852 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003507/0.2615, allocations: 16 kB / 492.8 MB, free: 6.836 MB / 362.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 () * 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.0006163/0.2621, allocations: 1.351 MB / 494.2 MB, free: 5.438 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001993/0.2624, allocations: 67.89 kB / 494.3 MB, free: 5.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2624, allocations: 0 / 494.3 MB, free: 5.371 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.2625, allocations: 40.23 kB / 494.3 MB, free: 5.332 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.2627, allocations: 14.91 kB / 494.3 MB, free: 5.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006013/0.2634, allocations: 264.1 kB / 494.6 MB, free: 5.012 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.2636, allocations: 0.6926 MB / 495.3 MB, free: 4.293 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.175e-05/0.2636, allocations: 4 kB / 495.3 MB, free: 4.289 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.839e-05/0.2637, allocations: 19.42 kB / 495.3 MB, free: 4.27 MB / 362.7 MB Notification: Performance of SimCode: time 3.156e-06/0.2637, allocations: 4 kB / 495.3 MB, free: 4.266 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01115/0.2748, allocations: 1.327 MB / 496.6 MB, free: 3.039 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/0.275, allocations: 165.3 kB / 496.8 MB, free: 2.793 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.363/1.638, allocations: 0 / 496.8 MB, free: 2.793 MB / 362.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