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.001142/0.001142, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 59.5 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.09023, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004307/0.09458, allocations: 2.833 MB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.09623, allocations: 0.857 MB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002341/0.09649, allocations: 8 kB / 361.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.0967, allocations: 47.56 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003918/0.0971, allocations: 119.1 kB / 361.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004683/0.09758, allocations: 195.6 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000537/0.09813, allocations: 486.3 kB / 362.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.09837, allocations: 125.4 kB / 362.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003366/0.09872, allocations: 187.4 kB / 362.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.09907, allocations: 215.2 kB / 362.6 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.938e-05/0.09916, allocations: 43.94 kB / 362.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.09927, allocations: 48 kB / 362.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.09941, allocations: 99.66 kB / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.0996, allocations: 187.2 kB / 363 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00046/0.1001, allocations: 450.5 kB / 363.4 MB, free: 8.125 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1001, allocations: 3.984 kB / 363.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1001, allocations: 0 / 363.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.891e-05/0.1001, allocations: 0 / 363.5 MB, free: 8.121 MB / 302.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.001599/0.1017, allocations: 0.6896 MB / 364.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.1018, allocations: 12.03 kB / 364.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.895e-05/0.1019, allocations: 62.73 kB / 364.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.1021, allocations: 44.55 kB / 364.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004018/0.1025, allocations: 303.5 kB / 364.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.732e-05/0.1026, allocations: 46.7 kB / 364.6 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.1026, allocations: 20.38 kB / 364.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004813/0.1031, allocations: 288.3 kB / 364.9 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1031, allocations: 0 / 364.9 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.1032, allocations: 8 kB / 364.9 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1032, allocations: 4 kB / 364.9 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003533/0.1036, allocations: 161.7 kB / 365.1 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.1059, allocations: 1.052 MB / 366.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.1062, allocations: 122.5 kB / 366.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.1065, allocations: 84.83 kB / 366.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.1065, allocations: 7.969 kB / 366.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1065, allocations: 34.56 kB / 366.4 MB, free: 4.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1065, allocations: 3.938 kB / 366.4 MB, free: 4.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009724/0.1075, allocations: 441.4 kB / 366.8 MB, free: 4.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/0.1076, allocations: 158.2 kB / 367 MB, free: 4.309 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.1079, allocations: 282.4 kB / 367.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.108, allocations: 29.7 kB / 367.3 MB, free: 3.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1081, allocations: 180.1 kB / 367.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.1082, allocations: 47.3 kB / 367.5 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.1083, allocations: 49.69 kB / 367.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1084, allocations: 330.8 kB / 367.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.1086, allocations: 87.95 kB / 367.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.1089, allocations: 136.1 kB / 368.1 MB, free: 3.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.1093, allocations: 164.1 kB / 368.2 MB, free: 2.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1093, allocations: 0 / 368.2 MB, free: 2.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007967/0.1172, allocations: 0.8925 MB / 369.1 MB, free: 2.059 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.1173, allocations: 4 kB / 369.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.1174, allocations: 0 / 369.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009469/0.1268, allocations: 0.8365 MB / 370 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.127, allocations: 19.98 kB / 370 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1818/0.3088, allocations: 4.886 MB / 374.9 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.3092, allocations: 27.33 kB / 374.9 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/0.3093, allocations: 10.94 kB / 374.9 MB, free: 16.71 MB / 302.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.0002012/0.3095, allocations: 139.8 kB / 375 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.914e-05/0.3096, allocations: 32.48 kB / 375.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.549e-05/0.3096, allocations: 27.5 kB / 375.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3096, allocations: 5.219 kB / 375.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3096, allocations: 5.547 kB / 375.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3096, allocations: 1.312 kB / 375.1 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.3107, allocations: 0.6098 MB / 375.7 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.3107, allocations: 5.031 kB / 375.7 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.3108, allocations: 24.67 kB / 375.8 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.311, allocations: 49.44 kB / 375.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3111, allocations: 5.281 kB / 375.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.3126, allocations: 2.941 MB / 378.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3126, allocations: 3.828 kB / 378.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005046/0.3132, allocations: 312 kB / 379.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.106e-05/0.3132, allocations: 105 kB / 379.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.3133, allocations: 2.391 kB / 379.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.3135, allocations: 14.45 kB / 379.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.459e-05/0.3136, allocations: 34.31 kB / 379.2 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.3136, allocations: 10.11 kB / 379.2 MB, free: 13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002329/0.3139, allocations: 200.5 kB / 379.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3139, allocations: 0 / 379.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005811/0.3145, allocations: 93.61 kB / 379.5 MB, free: 12.87 MB / 302.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.0007824/0.3152, allocations: 0.8537 MB / 380.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.3168, allocations: 0.5453 MB / 380.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3168, allocations: 0 / 380.9 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004096/0.3172, allocations: 327.3 kB / 381.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.3176, allocations: 52.03 kB / 381.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01866/0.3363, allocations: 3.983 MB / 385.3 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.3366, allocations: 0.7607 MB / 386 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000183/0.3368, allocations: 28.2 kB / 386 MB, free: 8.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3369, allocations: 88.09 kB / 386.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3369, allocations: 0 / 386.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03707/0.374, allocations: 9.807 MB / 395.9 MB, free: 5.293 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.19, allocations: 14.91 kB / 396 MB, free: 5.285 MB / 302.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)