Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001265/0.001266, allocations: 117.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 200.7 kB / 18.74 MB, free: 4.309 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.376/1.376, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.001868/0.001868, allocations: 63.91 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.237, allocations: 50.56 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003423/0.2405, allocations: 2.023 MB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002125/0.2426, allocations: 1.282 MB / 412.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2428, allocations: 4 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008074/0.2436, allocations: 303.1 kB / 412.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005545/0.2442, allocations: 251.1 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.2447, allocations: 230.6 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004223/0.2451, allocations: 363.1 kB / 413.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.2453, allocations: 60.7 kB / 413.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.2455, allocations: 147.4 kB / 413.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.2457, allocations: 151.4 kB / 413.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.2458, allocations: 20 kB / 413.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.2459, allocations: 83.94 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.2461, allocations: 87.67 kB / 414 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.2462, allocations: 135.1 kB / 414.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004505/0.2467, allocations: 361.6 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2467, allocations: 4 kB / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2467, allocations: 0 / 414.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.932e-06/0.2467, allocations: 0 / 414.5 MB, free: 11.89 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009654/0.2477, allocations: 0.6803 MB / 415.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.2477, allocations: 8.031 kB / 415.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.718e-05/0.2478, allocations: 42.75 kB / 415.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.418e-05/0.2478, allocations: 40.64 kB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.2483, allocations: 346.6 kB / 415.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.2483, allocations: 8.375 kB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.336e-05/0.2483, allocations: 11.94 kB / 415.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.2486, allocations: 152 kB / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.2487, allocations: 0 / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.2487, allocations: 12 kB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2487, allocations: 0 / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.2489, allocations: 67.95 kB / 415.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007065/0.2496, allocations: 0.4887 MB / 416.4 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.2499, allocations: 134.7 kB / 416.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.25, allocations: 48.84 kB / 416.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.2501, allocations: 0 / 416.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002308/0.2503, allocations: 122.3 kB / 416.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.2503, allocations: 0 / 416.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005153/0.2508, allocations: 225.2 kB / 416.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.404e-05/0.2509, allocations: 106.8 kB / 417 MB, free: 9.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006095/0.2515, allocations: 457.6 kB / 417.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.2516, allocations: 33.7 kB / 417.5 MB, free: 8.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.2517, allocations: 172 kB / 417.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.2518, allocations: 47.61 kB / 417.7 MB, free: 8.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.819e-05/0.2518, allocations: 45.7 kB / 417.7 MB, free: 8.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.252, allocations: 338.8 kB / 418.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.2521, allocations: 43.97 kB / 418.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.2523, allocations: 106 kB / 418.2 MB, free: 7.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.2525, allocations: 106.5 kB / 418.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2525, allocations: 0 / 418.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003247/0.2528, allocations: 184.3 kB / 418.5 MB, free: 7.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.2529, allocations: 15.92 kB / 418.5 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.2529, allocations: 3.984 kB / 418.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.2529, allocations: 0 / 418.5 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.253, allocations: 23.94 kB / 418.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.253, allocations: 3.984 kB / 418.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.2532, allocations: 19.89 kB / 418.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.2532, allocations: 4 kB / 418.6 MB, free: 7.551 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001833/0.2534, allocations: 175.6 kB / 418.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.537e-05/0.2534, allocations: 31.75 kB / 418.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.706e-05/0.2535, allocations: 38.97 kB / 418.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2535, allocations: 0 / 418.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.2535, allocations: 0 / 418.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2535, allocations: 3.984 kB / 418.8 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002907/0.2538, allocations: 301.5 kB / 419.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2538, allocations: 3.938 kB / 419.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-05/0.2539, allocations: 12 kB / 419.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2539, allocations: 7.938 kB / 419.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.2539, allocations: 3.984 kB / 419.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2539, allocations: 0 / 419.1 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2539, allocations: 4 kB / 419.1 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003468/0.2543, allocations: 200.8 kB / 419.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.036e-05/0.2544, allocations: 112.8 kB / 419.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.86e-05/0.2544, allocations: 4 kB / 419.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.314e-05/0.2545, allocations: 15.98 kB / 419.5 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.417e-05/0.2546, allocations: 15.92 kB / 419.5 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.2546, allocations: 4 kB / 419.5 MB, free: 6.543 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003839/0.255, allocations: 331.1 kB / 419.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.124e-06/0.255, allocations: 0 / 419.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002817/0.2553, allocations: 63.86 kB / 419.9 MB, free: 6.16 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001999/0.2573, allocations: 1.067 MB / 420.9 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002946/0.2576, allocations: 119.9 kB / 421 MB, free: 5.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2576, allocations: 3.938 kB / 421.1 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.2577, allocations: 55.97 kB / 421.1 MB, free: 5.047 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.2582, allocations: 79.8 kB / 421.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.2617, allocations: 2.862 MB / 424 MB, free: 2.012 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.2622, allocations: 0.783 MB / 424.8 MB, free: 1.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001249/0.2623, allocations: 50.25 kB / 424.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001464/0.2624, allocations: 95.41 kB / 425 MB, free: 1.062 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2624, allocations: 0 / 425 MB, free: 1.062 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.2919, allocations: 7.361 MB / 432.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.176/8.468, allocations: 4.062 kB / 432.3 MB, free: 9.836 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1_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_LogicalNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)