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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008087/0.000809, allocations: 90.48 kB / 16.31 MB, free: 6.453 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.0008614/0.0008611, allocations: 180.7 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002724, allocations: 8.172 kB / 300.9 MB, free: 6.027 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1052, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001887/0.1071, allocations: 1.281 MB / 352.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006691/0.1078, allocations: 399.3 kB / 353 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.034e-05/0.1079, allocations: 3.938 kB / 353 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.875e-05/0.108, allocations: 7.938 kB / 353 MB, free: 9.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.676e-05/0.108, allocations: 3.938 kB / 353 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.1082, allocations: 19.97 kB / 353 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.915e-05/0.1083, allocations: 51.78 kB / 353.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1085, allocations: 47.83 kB / 353.1 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.725e-05/0.1086, allocations: 15.94 kB / 353.2 MB, free: 9.754 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.645e-05/0.1087, allocations: 27.84 kB / 353.2 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.752e-05/0.1087, allocations: 0 / 353.2 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.298e-05/0.1087, allocations: 4 kB / 353.2 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.582e-05/0.1088, allocations: 7.922 kB / 353.2 MB, free: 9.715 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.138e-05/0.1088, allocations: 33.7 kB / 353.2 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.964e-05/0.1089, allocations: 39.91 kB / 353.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1089, allocations: 0 / 353.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.109, allocations: 7.938 kB / 353.3 MB, free: 9.629 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.109, allocations: 3.938 kB / 353.3 MB, free: 9.625 MB / 286.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.0005053/0.1095, allocations: 367.2 kB / 353.6 MB, free: 9.219 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.1095, allocations: 12.02 kB / 353.6 MB, free: 9.207 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.466e-05/0.1096, allocations: 34.56 kB / 353.7 MB, free: 9.164 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.1096, allocations: 15.86 kB / 353.7 MB, free: 9.148 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.1098, allocations: 171 kB / 353.9 MB, free: 8.941 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.1098, allocations: 8 kB / 353.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.1098, allocations: 4 kB / 353.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.1101, allocations: 121.9 kB / 354 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1101, allocations: 0 / 354 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.1101, allocations: 8 kB / 354 MB, free: 8.781 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1101, allocations: 7.953 kB / 354 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001952/0.1103, allocations: 63.89 kB / 354.1 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000719/0.1111, allocations: 0.6419 MB / 354.7 MB, free: 8.004 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.1112, allocations: 124.9 kB / 354.8 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.1114, allocations: 60.41 kB / 354.9 MB, free: 7.762 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.1114, allocations: 4 kB / 354.9 MB, free: 7.758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.1114, allocations: 42.44 kB / 354.9 MB, free: 7.707 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.1114, allocations: 4 kB / 354.9 MB, free: 7.703 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004436/0.1119, allocations: 134 kB / 355.1 MB, free: 7.566 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/0.112, allocations: 158.2 kB / 355.2 MB, free: 7.375 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.1121, allocations: 121.8 kB / 355.3 MB, free: 7.246 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.1121, allocations: 29.7 kB / 355.4 MB, free: 7.211 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.251e-05/0.1122, allocations: 99.97 kB / 355.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.1122, allocations: 15.75 kB / 355.5 MB, free: 7.094 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-06/0.1122, allocations: 0 / 355.5 MB, free: 7.094 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1124, allocations: 322.9 kB / 355.8 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.999e-05/0.1125, allocations: 23.97 kB / 355.8 MB, free: 6.746 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.427e-05/0.1126, allocations: 56.28 kB / 355.9 MB, free: 6.676 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.405e-05/0.1127, allocations: 27.98 kB / 355.9 MB, free: 6.648 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1127, allocations: 7.953 kB / 355.9 MB, free: 6.641 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002244/0.1129, allocations: 105.5 kB / 356 MB, free: 6.531 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.1129, allocations: 4 kB / 356 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1129, allocations: 0 / 356 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1129, allocations: 4 kB / 356 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.984e-05/0.1131, allocations: 24.11 kB / 356.1 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1131, allocations: 4.156 kB / 356.1 MB, free: 6.496 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.676e-05/0.1131, allocations: 15.89 kB / 356.1 MB, free: 6.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1132, allocations: 4 kB / 356.1 MB, free: 6.477 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 9.578e-05/0.1133, allocations: 121.7 kB / 356.2 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/0.1133, allocations: 7.953 kB / 356.2 MB, free: 6.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.194e-05/0.1134, allocations: 7.531 kB / 356.2 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-06/0.1134, allocations: 4 kB / 356.2 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1134, allocations: 3.984 kB / 356.2 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1134, allocations: 8 kB / 356.2 MB, free: 6.312 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003699/0.1138, allocations: 181.6 kB / 356.4 MB, free: 6.086 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1138, allocations: 7.984 kB / 356.4 MB, free: 6.078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.672e-05/0.1139, allocations: 11.95 kB / 356.4 MB, free: 6.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1139, allocations: 7.938 kB / 356.4 MB, free: 6.059 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1139, allocations: 3.984 kB / 356.4 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.1139, allocations: 4 kB / 356.4 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1139, allocations: 0 / 356.4 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003516/0.1143, allocations: 0.4966 MB / 356.9 MB, free: 5.535 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.1143, allocations: 81.02 kB / 357 MB, free: 5.438 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.1144, allocations: 11.95 kB / 357 MB, free: 5.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.1146, allocations: 11.98 kB / 357 MB, free: 5.414 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.1146, allocations: 4 kB / 357 MB, free: 5.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.1146, allocations: 3.984 kB / 357 MB, free: 5.406 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.699e-05/0.1147, allocations: 87.28 kB / 357.1 MB, free: 5.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1147, allocations: 7.938 kB / 357.1 MB, free: 5.312 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.1151, allocations: 19.94 kB / 357.2 MB, free: 5.293 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.0006428/0.1157, allocations: 1.022 MB / 358.2 MB, free: 4.242 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002359/0.116, allocations: 71.84 kB / 358.2 MB, free: 4.172 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.116, allocations: 0 / 358.2 MB, free: 4.172 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.1161, allocations: 44.47 kB / 358.3 MB, free: 4.129 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.1166, allocations: 6.172 kB / 358.3 MB, free: 4.125 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006816/0.1173, allocations: 269.6 kB / 358.6 MB, free: 3.809 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.1175, allocations: 0.6965 MB / 359.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.39e-05/0.1176, allocations: 3.984 kB / 359.3 MB, free: 3.082 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.563e-05/0.1176, allocations: 19.44 kB / 359.3 MB, free: 3.062 MB / 286.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1176, allocations: 3.938 kB / 359.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01145/0.1291, allocations: 1.364 MB / 360.6 MB, free: 1.801 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.1293, allocations: 164.3 kB / 360.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.841, allocations: 0 / 360.8 MB, free: 1.562 MB / 286.1 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