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.001012/0.001012, allocations: 93.7 kB / 16.93 MB, free: 5.984 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.0008628/0.000863, allocations: 179.4 kB / 17.82 MB, free: 5.652 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.277/1.277, 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.0004619/0.000462, allocations: 12 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09298, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001715/0.09475, allocations: 1.284 MB / 329.7 MB, free: 2.715 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006521/0.09542, allocations: 436.2 kB / 330.1 MB, free: 2.281 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.782e-05/0.09549, allocations: 0 / 330.1 MB, free: 2.281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.901e-05/0.09553, allocations: 11.92 kB / 330.1 MB, free: 2.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.104e-05/0.09561, allocations: 7.969 kB / 330.1 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.09575, allocations: 19.92 kB / 330.2 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.09586, allocations: 39.89 kB / 330.2 MB, free: 2.203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.09604, allocations: 31.95 kB / 330.2 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.397e-05/0.09615, allocations: 27.84 kB / 330.3 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.42e-05/0.09623, allocations: 23.92 kB / 330.3 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.09625, allocations: 3.938 kB / 330.3 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.444e-05/0.09627, allocations: 4 kB / 330.3 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.29e-05/0.09629, allocations: 0 / 330.3 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.132e-05/0.09634, allocations: 37.64 kB / 330.3 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 7.607e-05/0.09642, allocations: 44.19 kB / 330.4 MB, free: 2.027 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09643, allocations: 0 / 330.4 MB, free: 2.027 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.09644, allocations: 4 kB / 330.4 MB, free: 2.023 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.09645, allocations: 0 / 330.4 MB, free: 2.023 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.0005352/0.09699, allocations: 375 kB / 330.7 MB, free: 1.609 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.09705, allocations: 12.03 kB / 330.8 MB, free: 1.598 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.0971, allocations: 34.56 kB / 330.8 MB, free: 1.555 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.09714, allocations: 7.906 kB / 330.8 MB, free: 1.547 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.09729, allocations: 178.9 kB / 331 MB, free: 1.332 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.09732, allocations: 11.89 kB / 331 MB, free: 1.32 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.09734, allocations: 8 kB / 331 MB, free: 1.312 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.09757, allocations: 118 kB / 331.1 MB, free: 1.176 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.09759, allocations: 0 / 331.1 MB, free: 1.176 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-06/0.09761, allocations: 0 / 331.1 MB, free: 1.176 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.09762, allocations: 4 kB / 331.1 MB, free: 1.172 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.09782, allocations: 75.83 kB / 331.2 MB, free: 1.098 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006606/0.09848, allocations: 0.6303 MB / 331.8 MB, free: 412 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.09869, allocations: 121 kB / 331.9 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.09872, allocations: 128 / 331.9 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.09877, allocations: 54.44 kB / 332 MB, free: 180 kB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.09878, allocations: 0 / 332 MB, free: 180 kB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004379/0.09922, allocations: 134 kB / 332.1 MB, free: 40 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.09934, allocations: 158.2 kB / 332.3 MB, free: 15.85 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.09945, allocations: 125.7 kB / 332.4 MB, free: 15.71 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.09947, allocations: 33.7 kB / 332.4 MB, free: 15.68 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.455e-05/0.09953, allocations: 91.98 kB / 332.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.09957, allocations: 23.78 kB / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-06/0.09958, allocations: 0 / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.09971, allocations: 319 kB / 332.8 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.08e-05/0.0998, allocations: 23.98 kB / 332.9 MB, free: 15.21 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.09992, allocations: 64.27 kB / 332.9 MB, free: 15.14 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.472e-05/0.1, allocations: 27.98 kB / 333 MB, free: 15.11 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1, allocations: 0 / 333 MB, free: 15.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000228/0.1003, allocations: 105.5 kB / 333.1 MB, free: 15 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1003, allocations: 8 kB / 333.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1003, allocations: 0 / 333.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1003, allocations: 4 kB / 333.1 MB, free: 14.99 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1004, allocations: 16.14 kB / 333.1 MB, free: 14.97 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1004, allocations: 4 kB / 333.1 MB, free: 14.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.094e-05/0.1005, allocations: 23.84 kB / 333.1 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.1005, allocations: 0 / 333.1 MB, free: 14.95 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.0001018/0.1006, allocations: 125.7 kB / 333.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.824e-05/0.1007, allocations: 0 / 333.2 MB, free: 14.81 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.642e-05/0.1008, allocations: 19.42 kB / 333.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1008, allocations: 4 kB / 333.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1008, allocations: 4 kB / 333.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1008, allocations: 3.984 kB / 333.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003662/0.1012, allocations: 189.5 kB / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.1012, allocations: 3.984 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/0.1013, allocations: 12 kB / 333.5 MB, free: 14.53 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.1013, allocations: 7.938 kB / 333.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.1013, allocations: 0 / 333.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.1013, allocations: 7.984 kB / 333.5 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1013, allocations: 3.938 kB / 333.5 MB, free: 14.51 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004304/0.1017, allocations: 0.5346 MB / 334 MB, free: 13.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.1018, allocations: 84.97 kB / 334.1 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.1018, allocations: 4 kB / 334.1 MB, free: 13.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.102, allocations: 15.98 kB / 334.1 MB, free: 13.81 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-05/0.1021, allocations: 11.94 kB / 334.1 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.1021, allocations: 3.984 kB / 334.1 MB, free: 13.8 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.078e-05/0.1022, allocations: 87.72 kB / 334.2 MB, free: 13.71 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1022, allocations: 0 / 334.2 MB, free: 13.71 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003705/0.1025, allocations: 16 kB / 334.2 MB, free: 13.7 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.000803/0.1034, allocations: 1.351 MB / 335.6 MB, free: 12.3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000212/0.1036, allocations: 68.03 kB / 335.7 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1036, allocations: 0 / 335.7 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.927e-05/0.1037, allocations: 39.91 kB / 335.7 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.104, allocations: 19.83 kB / 335.7 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006531/0.1047, allocations: 262 kB / 336 MB, free: 11.87 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.105, allocations: 0.7004 MB / 336.7 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.023e-05/0.105, allocations: 0 / 336.7 MB, free: 11.14 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.826e-05/0.1051, allocations: 23.42 kB / 336.7 MB, free: 11.12 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1051, allocations: 3.938 kB / 336.7 MB, free: 11.12 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01187/0.1169, allocations: 1.336 MB / 338 MB, free: 9.797 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.1172, allocations: 163.7 kB / 338.2 MB, free: 9.555 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/1.732, allocations: 0 / 338.2 MB, free: 9.555 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