Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines,fileNamePrefix="Modelica_trunk_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.00126/0.00126, allocations: 122.8 kB / 17.79 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.001268/0.001268, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 59.91 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2531, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.004693/0.2578, allocations: 3.601 MB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.2595, allocations: 0.8881 MB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.2596, allocations: 7.938 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002127/0.2599, allocations: 83.2 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.2602, allocations: 146.7 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004043/0.2606, allocations: 191.6 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006192/0.2613, allocations: 0.6233 MB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003428/0.2616, allocations: 220.8 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002718/0.2619, allocations: 239.2 kB / 414.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003437/0.2623, allocations: 286.8 kB / 415.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.059e-05/0.2623, allocations: 56 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.701e-05/0.2624, allocations: 60 kB / 415.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.2626, allocations: 135.5 kB / 415.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002649/0.2628, allocations: 278.7 kB / 415.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.2635, allocations: 0.6176 MB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2635, allocations: 0 / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2635, allocations: 0 / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.2635, allocations: 0 / 416.2 MB, free: 10.08 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.001478/0.265, allocations: 0.8472 MB / 417 MB, free: 9.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.2651, allocations: 12.03 kB / 417.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.2652, allocations: 94.7 kB / 417.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.2653, allocations: 60.55 kB / 417.2 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006502/0.266, allocations: 342.5 kB / 417.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.266, allocations: 37.38 kB / 417.6 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.512e-05/0.2661, allocations: 48.12 kB / 417.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008611/0.267, allocations: 0.5179 MB / 418.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.267, allocations: 0 / 418.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.039e-05/0.2671, allocations: 16 kB / 418.2 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.2671, allocations: 12 kB / 418.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006476/0.2677, allocations: 311.8 kB / 418.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.2701, allocations: 1.554 MB / 420 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005293/0.2706, allocations: 210.5 kB / 420.2 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.2709, allocations: 108.8 kB / 420.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.2709, allocations: 0 / 420.3 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004186/0.2713, allocations: 229.6 kB / 420.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.2713, allocations: 0 / 420.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001609/0.2729, allocations: 0.7644 MB / 421.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002142/0.2732, allocations: 324.4 kB / 421.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003884/0.2736, allocations: 299 kB / 421.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.134e-05/0.2736, allocations: 33.7 kB / 422 MB, free: 3.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002164/0.2738, allocations: 276.1 kB / 422.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.057e-05/0.2739, allocations: 95.2 kB / 422.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.2741, allocations: 82.02 kB / 422.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.2743, allocations: 350.7 kB / 422.8 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.2745, allocations: 96.7 kB / 422.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.2749, allocations: 257.5 kB / 423.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005999/0.2755, allocations: 339.6 kB / 423.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2756, allocations: 0 / 423.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001221/0.2768, allocations: 0.5414 MB / 424 MB, free: 1.684 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/0.2768, allocations: 33.7 kB / 424 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2769, allocations: 0 / 424 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000713/0.2776, allocations: 166.4 kB / 424.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.2778, allocations: 47.92 kB / 424.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/0.2827, allocations: 4.933 MB / 429.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004738/0.2832, allocations: 71.58 kB / 429.2 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.2833, allocations: 16 kB / 429.2 MB, free: 11.98 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.000324/0.2836, allocations: 169.8 kB / 429.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-05/0.2837, allocations: 31.81 kB / 429.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.884e-05/0.2838, allocations: 43.02 kB / 429.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2838, allocations: 7.938 kB / 429.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.2838, allocations: 192 / 429.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.2838, allocations: 0 / 429.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005441/0.2844, allocations: 425.2 kB / 429.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2844, allocations: 0 / 429.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000182/0.2846, allocations: 43.91 kB / 429.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003218/0.2849, allocations: 99.36 kB / 430 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.2849, allocations: 15.92 kB / 430.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004585/0.2895, allocations: 5.765 MB / 435.8 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2896, allocations: 0 / 435.8 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008441/0.2904, allocations: 365 kB / 436.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.2905, allocations: 112.9 kB / 436.3 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.78e-05/0.2906, allocations: 7.984 kB / 436.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002597/0.2908, allocations: 31.97 kB / 436.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.2911, allocations: 51.88 kB / 436.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.2911, allocations: 8 kB / 436.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002543/0.2913, allocations: 221.9 kB / 436.6 MB, free: 3.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2914, allocations: 4 kB / 436.6 MB, free: 3.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006244/0.292, allocations: 147.7 kB / 436.7 MB, free: 3.789 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.001128/0.2931, allocations: 0.9004 MB / 437.6 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.2944, allocations: 0.71 MB / 438.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2944, allocations: 4.688 kB / 438.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007372/0.2951, allocations: 0.5806 MB / 438.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.2955, allocations: 56.91 kB / 439 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005268/0.3008, allocations: 3.521 MB / 442.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.3013, allocations: 0.8079 MB / 443.3 MB, free: 12.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.3015, allocations: 42.97 kB / 443.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.3017, allocations: 143.4 kB / 443.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3017, allocations: 0 / 443.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04401/0.3457, allocations: 9.214 MB / 452.7 MB, free: 3.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.56, allocations: 2.656 kB / 452.7 MB, free: 3.625 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_Lines_CompareLosslessLines.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines.pipe 2>&1)