Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.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.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001657/0.001657, 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.001938/0.001938, 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.429/1.429, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001897/0.001897, allocations: 59.91 kB / 358.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2527, allocations: 50.55 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.004689/0.2574, allocations: 3.605 MB / 412.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.259, allocations: 0.8881 MB / 413.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.2592, allocations: 8 kB / 413.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.2594, allocations: 83.2 kB / 413.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.2598, allocations: 142.7 kB / 413.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004017/0.2602, allocations: 191.8 kB / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006156/0.2608, allocations: 0.6193 MB / 414.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003206/0.2611, allocations: 216.8 kB / 414.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.2614, allocations: 251.2 kB / 415.1 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003491/0.2618, allocations: 278.8 kB / 415.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.706e-05/0.2619, allocations: 60 kB / 415.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.197e-05/0.262, allocations: 56 kB / 415.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.2621, allocations: 139.5 kB / 415.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002637/0.2624, allocations: 266.8 kB / 415.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006208/0.263, allocations: 0.6176 MB / 416.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.263, allocations: 4 kB / 416.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.263, allocations: 0 / 416.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.263, allocations: 3.938 kB / 416.5 MB, free: 9.941 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001465/0.2645, allocations: 0.8627 MB / 417.4 MB, free: 9.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2646, allocations: 8.031 kB / 417.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.382e-05/0.2646, allocations: 86.7 kB / 417.5 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.2648, allocations: 60.61 kB / 417.5 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.2652, allocations: 342.5 kB / 417.8 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.579e-05/0.2653, allocations: 37.38 kB / 417.9 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.606e-05/0.2654, allocations: 52.12 kB / 417.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008561/0.2662, allocations: 0.5101 MB / 418.4 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.2662, allocations: 0 / 418.4 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.623e-05/0.2663, allocations: 20 kB / 418.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.2663, allocations: 16 kB / 418.5 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006627/0.267, allocations: 315.8 kB / 418.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.2693, allocations: 1.546 MB / 420.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005245/0.2698, allocations: 218.4 kB / 420.5 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.27, allocations: 96.81 kB / 420.6 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.2701, allocations: 4 kB / 420.6 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004199/0.2705, allocations: 213.7 kB / 420.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.823e-06/0.2705, allocations: 0 / 420.9 MB, free: 5.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001558/0.2721, allocations: 0.776 MB / 421.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001717/0.2723, allocations: 320.4 kB / 421.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.2726, allocations: 307 kB / 422.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.2727, allocations: 33.7 kB / 422.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.2729, allocations: 280.1 kB / 422.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.67e-05/0.2729, allocations: 95.22 kB / 422.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.2731, allocations: 78.02 kB / 422.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2733, allocations: 342.8 kB / 423.1 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.2735, allocations: 96.7 kB / 423.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000376/0.2739, allocations: 265.4 kB / 423.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005595/0.2745, allocations: 335.1 kB / 423.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2745, allocations: 4 kB / 423.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001116/0.2756, allocations: 0.5297 MB / 424.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.2757, allocations: 33.7 kB / 424.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.2757, allocations: 4 kB / 424.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006493/0.2763, allocations: 178.3 kB / 424.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.2765, allocations: 47.92 kB / 424.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004716/0.2813, allocations: 4.934 MB / 429.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/0.2817, allocations: 71.64 kB / 429.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.2818, allocations: 16 kB / 429.5 MB, free: 11.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00024/0.282, allocations: 169.7 kB / 429.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.54e-05/0.2821, allocations: 35.81 kB / 429.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.141e-05/0.2822, allocations: 38.92 kB / 429.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2822, allocations: 4 kB / 429.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.2822, allocations: 8 kB / 429.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.2822, allocations: 0 / 429.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.2827, allocations: 425.2 kB / 430.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2827, allocations: 0 / 430.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.2829, allocations: 35.91 kB / 430.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003259/0.2832, allocations: 103.4 kB / 430.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.2833, allocations: 11.92 kB / 430.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004345/0.2876, allocations: 5.756 MB / 436.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2876, allocations: 0 / 436.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008165/0.2885, allocations: 373 kB / 436.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.2886, allocations: 104.9 kB / 436.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.2886, allocations: 11.98 kB / 436.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002601/0.2889, allocations: 31.97 kB / 436.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.289, allocations: 51.94 kB / 436.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.2891, allocations: 12 kB / 436.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002475/0.2893, allocations: 217.9 kB / 436.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2893, allocations: 0 / 436.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005994/0.2899, allocations: 155.7 kB / 437 MB, free: 3.648 MB / 350.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: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/0.2911, allocations: 0.9043 MB / 438 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.2924, allocations: 0.71 MB / 438.7 MB, free: 1.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.2924, allocations: 4 kB / 438.7 MB, free: 1.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007323/0.2931, allocations: 0.5775 MB / 439.2 MB, free: 1.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.2935, allocations: 58.09 kB / 439.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005199/0.2987, allocations: 3.512 MB / 442.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.2992, allocations: 0.8119 MB / 443.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001739/0.2993, allocations: 42.95 kB / 443.7 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.2995, allocations: 147.4 kB / 443.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2995, allocations: 3.938 kB / 443.8 MB, free: 12.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03994/0.3395, allocations: 9.226 MB / 453 MB, free: 3.512 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.49, allocations: 8.375 kB / 453 MB, free: 3.508 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines_res.csv --start-time 0 --stop-time 2e-08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-10 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1)