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.001243/0.001243, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 63.77 kB / 306.4 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08228/0.08338, allocations: 50.53 MB / 356.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.003619/0.08703, allocations: 2.886 MB / 359.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.08835, allocations: 0.861 MB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.08848, allocations: 4 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001833/0.08867, allocations: 31.7 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002697/0.08898, allocations: 99.36 kB / 360.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.0893, allocations: 179.7 kB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.08967, allocations: 454.4 kB / 361.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.08986, allocations: 102 kB / 361.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.0901, allocations: 171.3 kB / 361.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.09034, allocations: 191.2 kB / 361.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.0904, allocations: 24 kB / 361.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.493e-05/0.09049, allocations: 32 kB / 361.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.514e-05/0.09057, allocations: 75.7 kB / 362 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.09072, allocations: 171.1 kB / 362.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003774/0.0911, allocations: 430.5 kB / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.09112, allocations: 0 / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.09112, allocations: 0 / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.09113, allocations: 0 / 362.6 MB, free: 8.684 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.001418/0.09256, allocations: 0.6975 MB / 363.3 MB, free: 7.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.0926, allocations: 8.031 kB / 363.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.249e-05/0.09267, allocations: 54.73 kB / 363.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.09285, allocations: 44.55 kB / 363.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003481/0.09321, allocations: 311.5 kB / 363.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.029e-05/0.09329, allocations: 46.7 kB / 363.7 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.09334, allocations: 24.38 kB / 363.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004335/0.09378, allocations: 284.3 kB / 364 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.724e-06/0.09379, allocations: 0 / 364 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.09383, allocations: 12 kB / 364 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.09384, allocations: 7.938 kB / 364 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003197/0.09416, allocations: 161.7 kB / 364.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.09638, allocations: 1.052 MB / 365.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.09671, allocations: 126.5 kB / 365.4 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.09691, allocations: 84.7 kB / 365.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.09694, allocations: 4 kB / 365.5 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.09697, allocations: 34.56 kB / 365.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.09698, allocations: 0 / 365.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009194/0.09791, allocations: 445.3 kB / 365.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.09799, allocations: 158.2 kB / 366.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.09827, allocations: 282.5 kB / 366.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.09831, allocations: 29.7 kB / 366.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.09843, allocations: 176.1 kB / 366.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.09847, allocations: 47.3 kB / 366.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.328e-05/0.09856, allocations: 45.69 kB / 366.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.819e-05/0.09867, allocations: 334.8 kB / 367 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.09887, allocations: 83.95 kB / 367.1 MB, free: 3.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.09909, allocations: 140.4 kB / 367.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003088/0.0994, allocations: 165.7 kB / 367.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.09941, allocations: 0 / 367.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007965/0.1074, allocations: 0.8989 MB / 368.3 MB, free: 2.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1074, allocations: 7.984 kB / 368.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1074, allocations: 0 / 368.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009574/0.117, allocations: 0.8288 MB / 369.1 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.1172, allocations: 15.98 kB / 369.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1565/0.2737, allocations: 4.471 MB / 373.6 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.274, allocations: 22.88 kB / 373.6 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.2741, allocations: 8.453 kB / 373.6 MB, free: 17.44 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.0001281/0.2742, allocations: 148 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/0.2743, allocations: 21.94 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.2743, allocations: 34.38 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2743, allocations: 5.078 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.2743, allocations: 3.094 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.2743, allocations: 2.016 kB / 373.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008191/0.2752, allocations: 0.6192 MB / 374.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2752, allocations: 0.7812 kB / 374.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.2753, allocations: 20.14 kB / 374.5 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001696/0.2755, allocations: 50.02 kB / 374.5 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.2755, allocations: 12.59 kB / 374.5 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.2767, allocations: 2.668 MB / 377.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2768, allocations: 1.375 kB / 377.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004481/0.2772, allocations: 315.3 kB / 377.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.562e-05/0.2773, allocations: 97.12 kB / 377.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.2773, allocations: 6.75 kB / 377.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.2775, allocations: 14.39 kB / 377.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.142e-05/0.2776, allocations: 32.2 kB / 377.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.2776, allocations: 5.797 kB / 377.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.2778, allocations: 204.9 kB / 377.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.2779, allocations: 0 / 377.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.2784, allocations: 102.3 kB / 377.9 MB, free: 13.76 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.0006452/0.279, allocations: 0.8491 MB / 378.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.2803, allocations: 0.5397 MB / 379.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2804, allocations: 1.375 kB / 379.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003649/0.2807, allocations: 324 kB / 379.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004077/0.2811, allocations: 51.31 kB / 379.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/0.2997, allocations: 4.078 MB / 383.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002093/0.2999, allocations: 0.7643 MB / 384.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001493/0.3001, allocations: 24.95 kB / 384.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.3002, allocations: 88.83 kB / 384.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3002, allocations: 0 / 384.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.3214, allocations: 9.377 MB / 394 MB, free: 6.406 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.3215, allocations: 277.7 kB / 394.3 MB, free: 6.043 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.444, allocations: 0 / 394.3 MB, free: 6.043 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1)