Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008967/0.0008968, allocations: 101.8 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002382/0.0002382, allocations: 4 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2155, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1085/0.3241, allocations: 76.98 MB / 478.5 MB, free: 3.496 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.3244, allocations: 67.97 kB / 478.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00405/0.3284, allocations: 1.518 MB / 480.1 MB, free: 1.918 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3284, allocations: 0 / 480.1 MB, free: 1.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.3285, allocations: 0 / 480.1 MB, free: 1.918 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.0003992/0.3289, allocations: 383 kB / 480.5 MB, free: 1.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3289, allocations: 8.031 kB / 480.5 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.534e-05/0.329, allocations: 42.5 kB / 480.6 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.329, allocations: 11.91 kB / 480.6 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.3291, allocations: 167.1 kB / 480.7 MB, free: 1.223 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.3292, allocations: 8 kB / 480.7 MB, free: 1.215 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.3292, allocations: 11.88 kB / 480.7 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002193/0.3294, allocations: 117.9 kB / 480.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.3294, allocations: 0 / 480.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.3294, allocations: 0 / 480.9 MB, free: 1.066 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3295, allocations: 7.953 kB / 480.9 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.3296, allocations: 67.89 kB / 480.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006341/0.3303, allocations: 0.6419 MB / 481.6 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.3305, allocations: 113.1 kB / 481.7 MB, free: 132 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.3305, allocations: 4 kB / 481.7 MB, free: 128 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.3305, allocations: 46.55 kB / 481.7 MB, free: 72 kB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.3305, allocations: 0 / 481.7 MB, free: 72 kB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004695/0.331, allocations: 133.8 kB / 481.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/0.3311, allocations: 162.7 kB / 482 MB, free: 15.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.629e-05/0.3312, allocations: 112.9 kB / 482.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.3312, allocations: 29.64 kB / 482.2 MB, free: 15.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.997e-05/0.3313, allocations: 104 kB / 482.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.3313, allocations: 15.8 kB / 482.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.3313, allocations: 0 / 482.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3315, allocations: 314.8 kB / 482.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.383e-05/0.3315, allocations: 27.97 kB / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.962e-05/0.3317, allocations: 56.28 kB / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.909e-05/0.3317, allocations: 31.98 kB / 482.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3318, allocations: 0 / 482.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002294/0.332, allocations: 117.3 kB / 482.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.332, allocations: 4 kB / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.332, allocations: 4 kB / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3321, allocations: 0 / 482.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3322, allocations: 15.98 kB / 482.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.3322, allocations: 0 / 482.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.864e-05/0.3323, allocations: 11.98 kB / 482.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.3323, allocations: 4 kB / 482.9 MB, free: 14.86 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 8.807e-05/0.3324, allocations: 128.7 kB / 483 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.87e-05/0.3325, allocations: 11.86 kB / 483 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.3325, allocations: 15.64 kB / 483 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3325, allocations: 0 / 483 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3325, allocations: 4 kB / 483 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3325, allocations: 4 kB / 483 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003528/0.3329, allocations: 181.6 kB / 483.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3329, allocations: 0 / 483.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.333, allocations: 23.94 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.333, allocations: 3.938 kB / 483.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.333, allocations: 4 kB / 483.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.333, allocations: 3.938 kB / 483.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.333, allocations: 0 / 483.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003806/0.3334, allocations: 0.5385 MB / 483.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.3335, allocations: 85.02 kB / 483.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.3335, allocations: 0 / 483.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.3337, allocations: 11.98 kB / 483.9 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.3337, allocations: 15.94 kB / 483.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.3338, allocations: 4 kB / 483.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.967e-05/0.3338, allocations: 95.2 kB / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3338, allocations: 4 kB / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003528/0.3342, allocations: 11.94 kB / 484 MB, free: 13.61 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.0007326/0.3349, allocations: 1.339 MB / 485.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.3352, allocations: 75.83 kB / 485.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3352, allocations: 0 / 485.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.3353, allocations: 40.23 kB / 485.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.3356, allocations: 8 kB / 485.5 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007385/0.3363, allocations: 264.7 kB / 485.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.3367, allocations: 0.7014 MB / 486.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.725e-05/0.3367, allocations: 0 / 486.4 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.7e-05/0.3368, allocations: 23.42 kB / 486.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3368, allocations: 4 kB / 486.4 MB, free: 11.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01069/0.3475, allocations: 1.331 MB / 487.8 MB, free: 9.801 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001594/0.3477, allocations: 163.4 kB / 487.9 MB, free: 9.566 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.545/1.893, allocations: 0 / 487.9 MB, free: 9.566 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat does not exist to compare? outputFormat=mat