Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.449/1.449, allocations: 227.7 MB / 247.1 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 65.23 kB / 307.3 MB, free: 412 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1144, allocations: 50.54 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00308/0.1176, allocations: 1.61 MB / 359.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000909/0.1185, allocations: 498.7 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.283e-05/0.1186, allocations: 3.938 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.892e-05/0.1186, allocations: 7.938 kB / 360 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.718e-05/0.1187, allocations: 15.8 kB / 360 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.1189, allocations: 31.95 kB / 360 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.1191, allocations: 59.8 kB / 360.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1193, allocations: 52.12 kB / 360.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.1194, allocations: 31.91 kB / 360.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.968e-05/0.1195, allocations: 31.8 kB / 360.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.1195, allocations: 7.938 kB / 360.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.78e-05/0.1196, allocations: 12 kB / 360.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.1196, allocations: 7.984 kB / 360.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.245e-05/0.1197, allocations: 39.8 kB / 360.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.1198, allocations: 71.94 kB / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1198, allocations: 0 / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1198, allocations: 0 / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.1198, allocations: 0 / 360.3 MB, free: 11.36 MB / 302.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.0005368/0.1204, allocations: 383.2 kB / 360.7 MB, free: 10.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1204, allocations: 12.03 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.363e-05/0.1205, allocations: 38.73 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.1206, allocations: 20.84 kB / 360.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.1208, allocations: 188.2 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.1208, allocations: 4.375 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.1209, allocations: 8.375 kB / 361 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002427/0.1211, allocations: 114 kB / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1211, allocations: 0 / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.1212, allocations: 4 kB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1212, allocations: 4 kB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.1213, allocations: 55.89 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007058/0.1221, allocations: 0.6419 MB / 361.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.1223, allocations: 113.1 kB / 361.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.1224, allocations: 60.28 kB / 361.9 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.1224, allocations: 3.938 kB / 362 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.1225, allocations: 42.55 kB / 362 MB, free: 9.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/0.1225, allocations: 0 / 362 MB, free: 9.441 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004575/0.1229, allocations: 125.9 kB / 362.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.55e-05/0.123, allocations: 162.2 kB / 362.3 MB, free: 9.117 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.1232, allocations: 133.6 kB / 362.4 MB, free: 8.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.887e-05/0.1232, allocations: 25.7 kB / 362.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.063e-05/0.1233, allocations: 100 kB / 362.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.1233, allocations: 11.81 kB / 362.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.1233, allocations: 21.7 kB / 362.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.1235, allocations: 314.8 kB / 362.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.164e-05/0.1236, allocations: 27.97 kB / 362.9 MB, free: 8.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.633e-05/0.1237, allocations: 48.28 kB / 362.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001895/0.1239, allocations: 80.2 kB / 363 MB, free: 8.305 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1239, allocations: 4 kB / 363 MB, free: 8.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002256/0.1241, allocations: 97.44 kB / 363.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1242, allocations: 12.16 kB / 363.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1242, allocations: 128 / 363.1 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1242, allocations: 4 kB / 363.1 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.15e-05/0.1243, allocations: 15.98 kB / 363.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1243, allocations: 3.938 kB / 363.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.539e-05/0.1244, allocations: 11.92 kB / 363.2 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1244, allocations: 4 kB / 363.2 MB, free: 8.148 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.992e-05/0.1245, allocations: 117.8 kB / 363.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.021e-05/0.1246, allocations: 11.91 kB / 363.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.1246, allocations: 15.48 kB / 363.3 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1246, allocations: 3.984 kB / 363.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.1246, allocations: 7.938 kB / 363.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1247, allocations: 0 / 363.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000395/0.1251, allocations: 185.6 kB / 363.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1251, allocations: 0 / 363.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.681e-05/0.1252, allocations: 15.98 kB / 363.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1252, allocations: 0 / 363.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.1252, allocations: 8 kB / 363.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1252, allocations: 4 kB / 363.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.1252, allocations: 7.875 kB / 363.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003926/0.1256, allocations: 492.5 kB / 364 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.555e-05/0.1257, allocations: 77.11 kB / 364.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.1257, allocations: 11.92 kB / 364.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.1259, allocations: 7.984 kB / 364.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.126, allocations: 15.88 kB / 364.1 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.126, allocations: 7.984 kB / 364.1 MB, free: 7.082 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.408e-05/0.126, allocations: 91.22 kB / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.126, allocations: 0 / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003763/0.1264, allocations: 15.91 kB / 364.2 MB, free: 6.977 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007253/0.1272, allocations: 1.018 MB / 365.3 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002354/0.1274, allocations: 59.84 kB / 365.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1274, allocations: 0 / 365.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.1275, allocations: 36.41 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005391/0.1281, allocations: 12.12 kB / 365.4 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.1301, allocations: 1.764 MB / 367.1 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1304, allocations: 0.6885 MB / 367.8 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.283e-05/0.1305, allocations: 8 kB / 367.8 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.1305, allocations: 19.42 kB / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1306, allocations: 0 / 367.8 MB, free: 3.203 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.1529, allocations: 1.615 MB / 369.5 MB, free: 1.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.096/8.249, allocations: 13.97 kB / 369.5 MB, free: 1.625 MB / 302.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BusUsage.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BusUsage_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.BusUsage.pipe 2>&1)