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.001519/0.001519, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001732, 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 trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 59.91 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.274, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.CompareLosslessLines): time 0.004362/0.2784, allocations: 3.59 MB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.2798, allocations: 0.8959 MB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.28, allocations: 11.94 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001968/0.2802, allocations: 75.22 kB / 413.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000362/0.2806, allocations: 154.7 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.281, allocations: 195.6 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005493/0.2816, allocations: 0.6155 MB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003119/0.2819, allocations: 224.8 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.2822, allocations: 239.1 kB / 414.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/0.2825, allocations: 290.8 kB / 415.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-05/0.2826, allocations: 56 kB / 415.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.481e-05/0.2827, allocations: 60 kB / 415.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.2828, allocations: 135.5 kB / 415.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002502/0.283, allocations: 278.7 kB / 415.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005809/0.2836, allocations: 0.6137 MB / 416.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2836, allocations: 0 / 416.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2836, allocations: 0 / 416.2 MB, free: 10.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.2837, allocations: 0 / 416.2 MB, free: 10.1 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.001454/0.2851, allocations: 0.855 MB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2852, allocations: 12.03 kB / 417.1 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.725e-05/0.2852, allocations: 90.7 kB / 417.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/0.2854, allocations: 56.61 kB / 417.2 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004613/0.2858, allocations: 338.5 kB / 417.5 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.2859, allocations: 37.38 kB / 417.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.491e-05/0.2859, allocations: 52.12 kB / 417.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000827/0.2868, allocations: 0.5101 MB / 418.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.2868, allocations: 4 kB / 418.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.745e-05/0.2868, allocations: 20 kB / 418.2 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.2869, allocations: 15.94 kB / 418.2 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006308/0.2875, allocations: 311.8 kB / 418.5 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002154/0.2897, allocations: 1.542 MB / 420 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.2902, allocations: 222.4 kB / 420.2 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.2905, allocations: 108.8 kB / 420.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.2905, allocations: 0 / 420.3 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004241/0.2909, allocations: 221.7 kB / 420.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.815e-06/0.2909, allocations: 0 / 420.6 MB, free: 5.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001494/0.2924, allocations: 0.7721 MB / 421.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.2926, allocations: 316.4 kB / 421.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003161/0.2929, allocations: 306.9 kB / 421.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.293, allocations: 33.7 kB / 422 MB, free: 3.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.2931, allocations: 272.1 kB / 422.2 MB, free: 3.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.883e-05/0.2932, allocations: 99.19 kB / 422.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.2934, allocations: 86.02 kB / 422.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.2935, allocations: 338.8 kB / 422.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.2938, allocations: 100.7 kB / 422.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.2941, allocations: 261.4 kB / 423.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005017/0.2946, allocations: 335.6 kB / 423.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2946, allocations: 96 / 423.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001083/0.2957, allocations: 0.5452 MB / 424 MB, free: 1.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.2958, allocations: 37.69 kB / 424 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2958, allocations: 0 / 424 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005936/0.2964, allocations: 162.4 kB / 424.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.2966, allocations: 55.84 kB / 424.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004044/0.3006, allocations: 4.933 MB / 429.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.3011, allocations: 63.64 kB / 429.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.3011, allocations: 16 kB / 429.2 MB, free: 12 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.0002075/0.3013, allocations: 170.8 kB / 429.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.44e-05/0.3014, allocations: 35.81 kB / 429.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.177e-05/0.3014, allocations: 42.92 kB / 429.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3014, allocations: 4 kB / 429.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-06/0.3015, allocations: 0 / 429.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3015, allocations: 3.984 kB / 429.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003928/0.3019, allocations: 425.4 kB / 429.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3019, allocations: 4 kB / 429.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.3021, allocations: 43.91 kB / 430 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002946/0.3024, allocations: 95.36 kB / 430 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.3024, allocations: 11.94 kB / 430.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003685/0.3061, allocations: 5.764 MB / 435.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3061, allocations: 0 / 435.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007422/0.3068, allocations: 369 kB / 436.2 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.641e-05/0.307, allocations: 108.8 kB / 436.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.907e-05/0.307, allocations: 8 kB / 436.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/0.3073, allocations: 31.97 kB / 436.3 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3074, allocations: 51.88 kB / 436.4 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.3074, allocations: 15.98 kB / 436.4 MB, free: 4.164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000229/0.3077, allocations: 214 kB / 436.6 MB, free: 3.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3077, allocations: 4 kB / 436.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005707/0.3083, allocations: 147.7 kB / 436.8 MB, free: 3.809 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.001033/0.3093, allocations: 0.9043 MB / 437.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.3105, allocations: 0.7106 MB / 438.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3105, allocations: 4 kB / 438.4 MB, free: 2.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007072/0.3112, allocations: 0.5768 MB / 438.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.3116, allocations: 56.7 kB / 439 MB, free: 1.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004848/0.3164, allocations: 3.519 MB / 442.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.3168, allocations: 0.8079 MB / 443.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.317, allocations: 46.95 kB / 443.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.3172, allocations: 139.4 kB / 443.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3172, allocations: 0 / 443.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03482/0.352, allocations: 9.219 MB / 452.7 MB, free: 3.645 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.761/10.11, allocations: 0 / 452.7 MB, free: 3.645 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)