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.001354/0.001354, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 199.9 kB / 18.73 MB, free: 4.312 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.377/1.377, allocations: 227.7 MB / 247.2 MB, free: 10.23 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.001894/0.001894, allocations: 59.89 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2525, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00269/0.2552, allocations: 1.605 MB / 410.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000809/0.256, allocations: 498.6 kB / 411.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.034e-05/0.2561, allocations: 0 / 411.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.2562, allocations: 3.938 kB / 411.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.221e-05/0.2563, allocations: 27.72 kB / 411.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.2564, allocations: 27.97 kB / 411.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.2566, allocations: 63.78 kB / 411.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.2567, allocations: 52.12 kB / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.2569, allocations: 31.86 kB / 411.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.391e-05/0.2569, allocations: 31.84 kB / 411.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.257, allocations: 4 kB / 411.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.212e-05/0.257, allocations: 8 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.257, allocations: 11.94 kB / 411.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.887e-05/0.2571, allocations: 35.78 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.2572, allocations: 74.81 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2572, allocations: 0 / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2572, allocations: 0 / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.2572, allocations: 0 / 411.5 MB, free: 14.93 MB / 334.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.0005049/0.2578, allocations: 391.1 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2578, allocations: 8.031 kB / 411.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.2578, allocations: 38.75 kB / 411.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.258, allocations: 20.88 kB / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.2582, allocations: 188.2 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.2582, allocations: 4.375 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.2582, allocations: 4.375 kB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.2585, allocations: 125.4 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2585, allocations: 3.938 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.2585, allocations: 8 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.2585, allocations: 0 / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.2587, allocations: 55.91 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006356/0.2593, allocations: 0.6342 MB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.2595, allocations: 117 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.2597, allocations: 60.28 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.2597, allocations: 0 / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.2597, allocations: 38.56 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.2597, allocations: 0 / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004266/0.2602, allocations: 125.6 kB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.085e-05/0.2603, allocations: 158.2 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.2604, allocations: 125.8 kB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.2604, allocations: 29.7 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.843e-05/0.2605, allocations: 100.5 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.2605, allocations: 19.89 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.842e-05/0.2605, allocations: 21.72 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.2607, allocations: 318.8 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.976e-05/0.2608, allocations: 19.98 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.537e-05/0.2609, allocations: 52.27 kB / 414.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.2611, allocations: 84.14 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2611, allocations: 3.938 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002345/0.2613, allocations: 101.5 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2613, allocations: 4 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.2613, allocations: 0 / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2614, allocations: 4 kB / 414.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.33e-05/0.2615, allocations: 15.92 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.2615, allocations: 7.938 kB / 414.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.044e-05/0.2616, allocations: 8.094 kB / 414.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.2616, allocations: 8 kB / 414.4 MB, free: 11.7 MB / 334.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 9.507e-05/0.2617, allocations: 117.8 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.561e-05/0.2618, allocations: 11.95 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.2618, allocations: 11.48 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.2618, allocations: 4 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.942e-06/0.2618, allocations: 3.938 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.2618, allocations: 4 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003857/0.2622, allocations: 181.7 kB / 414.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.2622, allocations: 8 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.686e-05/0.2623, allocations: 15.98 kB / 414.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2623, allocations: 3.938 kB / 414.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.333e-06/0.2623, allocations: 4 kB / 414.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.2623, allocations: 0 / 414.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.2623, allocations: 11.88 kB / 414.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003852/0.2627, allocations: 488.6 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.139e-05/0.2628, allocations: 89.05 kB / 415.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.2628, allocations: 0 / 415.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.263, allocations: 11.94 kB / 415.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.2631, allocations: 11.92 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.2631, allocations: 8 kB / 415.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.739e-05/0.2632, allocations: 91.27 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2632, allocations: 4 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003716/0.2635, allocations: 12 kB / 415.4 MB, free: 10.53 MB / 334.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.0006818/0.2642, allocations: 1.014 MB / 416.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002186/0.2645, allocations: 60.08 kB / 416.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.2645, allocations: 12 kB / 416.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.2646, allocations: 31.92 kB / 416.6 MB, free: 9.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.2651, allocations: 7.984 kB / 416.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/0.2671, allocations: 1.769 MB / 418.3 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.2675, allocations: 0.6962 MB / 419 MB, free: 6.773 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.497e-05/0.2675, allocations: 4 kB / 419 MB, free: 6.77 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.482e-05/0.2676, allocations: 23.42 kB / 419.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2676, allocations: 0 / 419.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.2921, allocations: 1.656 MB / 420.7 MB, free: 5.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.189, allocations: 6.812 kB / 420.7 MB, free: 5.145 MB / 334.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)