Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.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.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001681/0.001681, allocations: 118.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.001954/0.001954, allocations: 197.2 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.433/1.433, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 71.88 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2849, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004181/0.2891, allocations: 2.842 MB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001531/0.2907, allocations: 0.8609 MB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2908, allocations: 8 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.291, allocations: 39.58 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002897/0.2913, allocations: 111.1 kB / 412.7 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.2917, allocations: 207.6 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004785/0.2922, allocations: 482.3 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.2924, allocations: 117.1 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.2927, allocations: 191.4 kB / 413.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.293, allocations: 215.2 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.264e-05/0.2931, allocations: 44 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.407e-05/0.2932, allocations: 47.98 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.76e-05/0.2933, allocations: 95.67 kB / 414 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.2934, allocations: 187.2 kB / 414.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.294, allocations: 461.3 kB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.294, allocations: 0 / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.294, allocations: 0 / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.294, allocations: 0 / 414.7 MB, free: 11.62 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001531/0.2955, allocations: 0.6972 MB / 415.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2956, allocations: 12.03 kB / 415.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.753e-05/0.2956, allocations: 58.73 kB / 415.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.2958, allocations: 52.69 kB / 415.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.2963, allocations: 299.8 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.803e-05/0.2964, allocations: 50.69 kB / 415.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.02e-05/0.2965, allocations: 24.38 kB / 415.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.2969, allocations: 284.3 kB / 416.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.297, allocations: 0 / 416.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.095e-05/0.297, allocations: 12 kB / 416.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.297, allocations: 4 kB / 416.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003509/0.2974, allocations: 161.7 kB / 416.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.2997, allocations: 1.052 MB / 417.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003041/0.3, allocations: 118.5 kB / 417.5 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.3002, allocations: 84.81 kB / 417.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.3003, allocations: 0 / 417.5 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.3003, allocations: 42.5 kB / 417.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.965e-06/0.3003, allocations: 0 / 417.6 MB, free: 8.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001002/0.3013, allocations: 444.8 kB / 418 MB, free: 7.992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.3015, allocations: 162.2 kB / 418.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003178/0.3018, allocations: 278.5 kB / 418.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.3018, allocations: 33.7 kB / 418.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.302, allocations: 180.3 kB / 418.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.302, allocations: 47.58 kB / 418.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.3021, allocations: 53.69 kB / 418.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3023, allocations: 330.8 kB / 419.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.3025, allocations: 83.95 kB / 419.2 MB, free: 6.773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.3027, allocations: 136.5 kB / 419.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.303, allocations: 163.9 kB / 419.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3031, allocations: 0 / 419.5 MB, free: 6.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.008302/0.3114, allocations: 0.8992 MB / 420.4 MB, free: 5.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.3114, allocations: 4 kB / 420.4 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3114, allocations: 0 / 420.4 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009819/0.3213, allocations: 0.8288 MB / 421.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.3214, allocations: 23.97 kB / 421.2 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009443/0.3309, allocations: 4.897 MB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.3312, allocations: 23.84 kB / 426.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.3313, allocations: 7.984 kB / 426.1 MB, free: 15.47 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001841/0.3315, allocations: 137.8 kB / 426.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.638e-05/0.3315, allocations: 23.86 kB / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.3316, allocations: 29.83 kB / 426.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3316, allocations: 0 / 426.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3316, allocations: 64 / 426.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3316, allocations: 8 kB / 426.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009427/0.3326, allocations: 0.6179 MB / 426.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3326, allocations: 0 / 426.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.3327, allocations: 27.95 kB / 427 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.3329, allocations: 53.67 kB / 427 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.3329, allocations: 4 kB / 427 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/0.3351, allocations: 2.928 MB / 430 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.3352, allocations: 0 / 430 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/0.3357, allocations: 321.8 kB / 430.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.605e-05/0.3358, allocations: 108.9 kB / 430.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.3358, allocations: 4 kB / 430.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.336, allocations: 15.98 kB / 430.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.377e-05/0.3361, allocations: 27.97 kB / 430.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.3361, allocations: 4 kB / 430.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002116/0.3364, allocations: 198 kB / 430.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3364, allocations: 0 / 430.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005159/0.3369, allocations: 100 kB / 430.7 MB, free: 10.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008574/0.3378, allocations: 0.8587 MB / 431.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.3394, allocations: 0.54 MB / 432.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.3394, allocations: 0 / 432.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004567/0.3398, allocations: 321.4 kB / 432.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/0.3403, allocations: 56.58 kB / 432.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01967/0.36, allocations: 3.985 MB / 436.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005433/0.3606, allocations: 0.7635 MB / 437.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001659/0.3607, allocations: 25.95 kB / 437.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.3609, allocations: 91.39 kB / 437.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3609, allocations: 0 / 437.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04761/0.4085, allocations: 9.847 MB / 447.2 MB, free: 9.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.73, allocations: 7.203 kB / 447.2 MB, free: 9.98 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1)