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.001539/0.001539, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001851/0.001851, allocations: 198 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.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3025, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004153/0.3067, allocations: 2.846 MB / 411.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.3083, allocations: 0.8571 MB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.3085, allocations: 4 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.3086, allocations: 47.5 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.309, allocations: 115.1 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004461/0.3094, allocations: 207.6 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005025/0.3099, allocations: 482.3 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002339/0.3102, allocations: 113.1 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002843/0.3105, allocations: 191.4 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000311/0.3108, allocations: 219.1 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.236e-05/0.3109, allocations: 48 kB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.311, allocations: 52 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.633e-05/0.3111, allocations: 83.73 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.3113, allocations: 191.1 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005134/0.3118, allocations: 457.3 kB / 414.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.3118, allocations: 8 kB / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3118, allocations: 0 / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3118, allocations: 0 / 414.7 MB, free: 11.64 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.001509/0.3133, allocations: 0.6933 MB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3134, allocations: 12.03 kB / 415.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.74e-05/0.3135, allocations: 62.66 kB / 415.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.3137, allocations: 44.7 kB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.3142, allocations: 307.7 kB / 415.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.32e-05/0.3143, allocations: 46.7 kB / 415.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.473e-05/0.3143, allocations: 20.38 kB / 415.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.3149, allocations: 288.3 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.3149, allocations: 0 / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.3149, allocations: 8 kB / 416.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3149, allocations: 11.98 kB / 416.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003464/0.3153, allocations: 157.7 kB / 416.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.3176, allocations: 1.056 MB / 417.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.318, allocations: 126.5 kB / 417.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.3182, allocations: 76.83 kB / 417.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.3182, allocations: 4 kB / 417.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.3182, allocations: 30.56 kB / 417.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.3182, allocations: 0 / 417.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001004/0.3193, allocations: 445.5 kB / 418 MB, free: 8.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.3194, allocations: 166.2 kB / 418.2 MB, free: 7.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.3197, allocations: 278.5 kB / 418.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.3198, allocations: 25.7 kB / 418.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.3199, allocations: 176.3 kB / 418.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.32, allocations: 55.58 kB / 418.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.726e-05/0.3201, allocations: 45.69 kB / 418.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3202, allocations: 334.8 kB / 419.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.3204, allocations: 91.95 kB / 419.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.3206, allocations: 136.6 kB / 419.3 MB, free: 6.648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003195/0.321, allocations: 163.9 kB / 419.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.321, allocations: 0 / 419.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007401/0.3284, allocations: 0.9031 MB / 420.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.3284, allocations: 8 kB / 420.4 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-06/0.3284, allocations: 0 / 420.4 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008896/0.3373, allocations: 0.8288 MB / 421.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.3375, allocations: 15.98 kB / 421.2 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009269/0.3468, allocations: 4.886 MB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003075/0.3471, allocations: 31.86 kB / 426.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.3471, allocations: 4 kB / 426.1 MB, free: 15.5 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.0002068/0.3474, allocations: 149.7 kB / 426.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.827e-05/0.3474, allocations: 23.86 kB / 426.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.74e-05/0.3475, allocations: 25.91 kB / 426.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3475, allocations: 4 kB / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.395e-06/0.3475, allocations: 3.984 kB / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3475, allocations: 0 / 426.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.3485, allocations: 0.6259 MB / 427 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3486, allocations: 0 / 427 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.3487, allocations: 19.98 kB / 427 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/0.3489, allocations: 53.56 kB / 427 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.3489, allocations: 7.984 kB / 427 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002227/0.3511, allocations: 2.928 MB / 430 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.3512, allocations: 7.969 kB / 430 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005368/0.3517, allocations: 321.2 kB / 430.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.3518, allocations: 104.8 kB / 430.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.128e-05/0.3519, allocations: 8 kB / 430.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.3521, allocations: 11.98 kB / 430.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.63e-05/0.3522, allocations: 27.97 kB / 430.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.3522, allocations: 7.984 kB / 430.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.3524, allocations: 194 kB / 430.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3524, allocations: 0 / 430.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005216/0.353, allocations: 103.8 kB / 430.7 MB, free: 10.5 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.0008468/0.3538, allocations: 0.8436 MB / 431.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.3554, allocations: 0.5479 MB / 432.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3554, allocations: 0 / 432.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004598/0.3559, allocations: 321.4 kB / 432.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.3563, allocations: 51.31 kB / 432.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01787/0.3742, allocations: 3.994 MB / 436.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.3747, allocations: 0.7597 MB / 437.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000174/0.3749, allocations: 26.02 kB / 437.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.3751, allocations: 91.39 kB / 437.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3751, allocations: 0 / 437.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03787/0.413, allocations: 9.844 MB / 447.2 MB, free: 10.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.2, allocations: 7.188 kB / 447.2 MB, free: 10 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)