Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001654/0.001654, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001832/0.001832, allocations: 202 kB / 18.74 MB, free: 4.332 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.41/1.41, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.002702/0.002702, allocations: 67.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2465, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.00304/0.2495, allocations: 1.855 MB / 410.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.2515, allocations: 1.173 MB / 412.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.2516, allocations: 3.938 kB / 412.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006283/0.2523, allocations: 175.5 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000423/0.2527, allocations: 155.4 kB / 412.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.2531, allocations: 143.5 kB / 412.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.2534, allocations: 223.4 kB / 412.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.2536, allocations: 25.55 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.2537, allocations: 83.62 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.2539, allocations: 91.61 kB / 413 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.2539, allocations: 11.98 kB / 413 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.2541, allocations: 51.98 kB / 413 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.192e-05/0.2541, allocations: 51.77 kB / 413.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.993e-05/0.2543, allocations: 79.53 kB / 413.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00034/0.2546, allocations: 226.2 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2546, allocations: 4 kB / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2546, allocations: 0 / 413.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.2546, allocations: 0 / 413.4 MB, free: 13.05 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009011/0.2555, allocations: 0.5388 MB / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.2556, allocations: 8.031 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.082e-05/0.2556, allocations: 42.69 kB / 414 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.99e-05/0.2557, allocations: 24.73 kB / 414 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.256, allocations: 267 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.2561, allocations: 8.375 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.062e-05/0.2561, allocations: 11.94 kB / 414.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002301/0.2563, allocations: 113.9 kB / 414.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.2563, allocations: 0 / 414.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.2564, allocations: 3.984 kB / 414.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.2564, allocations: 4 kB / 414.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.2565, allocations: 55.91 kB / 414.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000662/0.2572, allocations: 0.5988 MB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002649/0.2575, allocations: 127.9 kB / 415.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.2576, allocations: 46.56 kB / 415.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.2576, allocations: 8 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.2579, allocations: 121.9 kB / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.252e-06/0.2579, allocations: 0 / 415.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004576/0.2583, allocations: 177.6 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.842e-05/0.2584, allocations: 132.6 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/0.2588, allocations: 300.9 kB / 415.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.2588, allocations: 29.7 kB / 416 MB, free: 10.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.213e-05/0.2589, allocations: 124.4 kB / 416.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.2589, allocations: 35.72 kB / 416.1 MB, free: 10 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.018e-05/0.259, allocations: 29.72 kB / 416.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2592, allocations: 342.8 kB / 416.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.163e-05/0.2593, allocations: 27.98 kB / 416.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.2594, allocations: 89.3 kB / 416.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.2596, allocations: 92.22 kB / 416.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2596, allocations: 4.031 kB / 416.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002759/0.2599, allocations: 149.4 kB / 416.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2599, allocations: 4 kB / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.2599, allocations: 0 / 416.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.2599, allocations: 4 kB / 416.9 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.121e-05/0.26, allocations: 12 kB / 416.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.26, allocations: 3.984 kB / 416.9 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.2602, allocations: 23.97 kB / 416.9 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.2602, allocations: 7.984 kB / 416.9 MB, free: 9.176 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: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001486/0.2603, allocations: 147.1 kB / 417 MB, free: 9.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.2604, allocations: 27.84 kB / 417.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.675e-05/0.2604, allocations: 21.72 kB / 417.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.2605, allocations: 4 kB / 417.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.2605, allocations: 3.984 kB / 417.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2605, allocations: 3.938 kB / 417.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.2607, allocations: 245.5 kB / 417.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2607, allocations: 7.938 kB / 417.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.775e-05/0.2608, allocations: 8 kB / 417.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2608, allocations: 0 / 417.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.2608, allocations: 8 kB / 417.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.2608, allocations: 3.938 kB / 417.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2608, allocations: 0 / 417.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.2611, allocations: 186.5 kB / 417.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.298e-05/0.2612, allocations: 96.95 kB / 417.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.2613, allocations: 0 / 417.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.92e-05/0.2614, allocations: 15.98 kB / 417.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.2614, allocations: 19.92 kB / 417.7 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.2615, allocations: 4 kB / 417.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002325/0.2617, allocations: 220.4 kB / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.284e-06/0.2617, allocations: 0 / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.262, allocations: 39.94 kB / 417.9 MB, free: 8.031 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.001974/0.264, allocations: 1.016 MB / 419 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002776/0.2643, allocations: 95.84 kB / 419.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.2643, allocations: 4 kB / 419.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.2644, allocations: 51.91 kB / 419.1 MB, free: 6.992 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/0.2648, allocations: 56.64 kB / 419.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.2675, allocations: 2.194 MB / 421.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.2679, allocations: 0.728 MB / 422.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.422e-05/0.268, allocations: 37.52 kB / 422.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.2681, allocations: 59.42 kB / 422.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2681, allocations: 0 / 422.2 MB, free: 3.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.295, allocations: 5.21 MB / 427.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.819/8.114, allocations: 15.42 kB / 427.4 MB, free: 14.67 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources_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_ShowLogicalSources.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)