Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00124/0.00124, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001287, allocations: 202 kB / 18.74 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.387/1.387, allocations: 227.7 MB / 247.2 MB, free: 10.27 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.001842/0.001842, allocations: 63.89 kB / 358.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2405, allocations: 50.55 MB / 409.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003279/0.2438, allocations: 1.846 MB / 410.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.2451, allocations: 0.6856 MB / 411.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.2453, allocations: 7.938 kB / 411.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.2454, allocations: 27.67 kB / 411.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.2456, allocations: 23.73 kB / 411.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003277/0.2459, allocations: 95.77 kB / 411.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002696/0.2462, allocations: 179.4 kB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000193/0.2464, allocations: 74.61 kB / 412 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.2466, allocations: 91.62 kB / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.2468, allocations: 83.61 kB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.2468, allocations: 12 kB / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.42e-05/0.2469, allocations: 31.98 kB / 412.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.423e-05/0.247, allocations: 47.84 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.707e-05/0.2471, allocations: 87.41 kB / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003198/0.2474, allocations: 201.5 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2474, allocations: 0 / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.2474, allocations: 0 / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.2474, allocations: 7.922 kB / 412.6 MB, free: 13.9 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009618/0.2484, allocations: 0.5062 MB / 413.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2485, allocations: 11.97 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.057e-05/0.2485, allocations: 54.73 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.2487, allocations: 32.78 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003155/0.249, allocations: 248.8 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.2491, allocations: 12.38 kB / 413.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.2491, allocations: 20.38 kB / 413.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004117/0.2495, allocations: 209.4 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2495, allocations: 4 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.2496, allocations: 7.938 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.489e-05/0.2496, allocations: 15.92 kB / 413.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003476/0.2499, allocations: 131.9 kB / 413.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001106/0.2511, allocations: 0.7856 MB / 414.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.2517, allocations: 190.6 kB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.2519, allocations: 60.81 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.2519, allocations: 4 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002879/0.2522, allocations: 149 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.2522, allocations: 0 / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006165/0.2529, allocations: 249.3 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.2529, allocations: 85.11 kB / 415.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.2532, allocations: 223.1 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.2532, allocations: 29.7 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.2533, allocations: 148.4 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/0.2534, allocations: 31.75 kB / 415.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.043e-05/0.2535, allocations: 61.64 kB / 415.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2536, allocations: 334.8 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.2538, allocations: 67.95 kB / 416.2 MB, free: 10 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.254, allocations: 136.5 kB / 416.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003686/0.2544, allocations: 212.4 kB / 416.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2544, allocations: 0 / 416.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004729/0.2549, allocations: 253.2 kB / 416.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.2549, allocations: 4.375 kB / 416.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.255, allocations: 4 kB / 416.8 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.255, allocations: 4 kB / 416.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.2552, allocations: 43.91 kB / 416.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.2552, allocations: 3.938 kB / 416.8 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.2554, allocations: 44.02 kB / 416.9 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.2554, allocations: 15.92 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 0.0001474/0.2556, allocations: 140.1 kB / 417 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.2556, allocations: 19.89 kB / 417 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002559/0.2559, allocations: 135 kB / 417.2 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.2559, allocations: 4 kB / 417.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.2559, allocations: 0 / 417.2 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.2559, allocations: 7.938 kB / 417.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007103/0.2566, allocations: 478.2 kB / 417.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2566, allocations: 0 / 417.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.2568, allocations: 15.98 kB / 417.7 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2568, allocations: 4.312 kB / 417.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.2568, allocations: 7.922 kB / 417.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.2568, allocations: 8 kB / 417.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2568, allocations: 0 / 417.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.2572, allocations: 288.1 kB / 418 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.456e-05/0.2573, allocations: 96.95 kB / 418.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.2574, allocations: 7.938 kB / 418.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.2575, allocations: 19.97 kB / 418.1 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/0.2576, allocations: 23.97 kB / 418.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.2577, allocations: 4 kB / 418.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.2578, allocations: 144.7 kB / 418.3 MB, free: 7.742 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2578, allocations: 7.938 kB / 418.3 MB, free: 7.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.2581, allocations: 39.94 kB / 418.3 MB, free: 7.695 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008127/0.2589, allocations: 0.8343 MB / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004218/0.2594, allocations: 179 kB / 419.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2594, allocations: 0 / 419.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.2596, allocations: 80.39 kB / 419.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.2599, allocations: 31.97 kB / 419.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.2627, allocations: 2.234 MB / 421.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.2631, allocations: 0.7398 MB / 422.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001367/0.2633, allocations: 29.53 kB / 422.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.2634, allocations: 67.41 kB / 422.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2634, allocations: 3.938 kB / 422.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.2885, allocations: 4.132 MB / 426.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.048/8.337, allocations: 13 kB / 426.6 MB, free: 15.25 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)