Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009176/0.0009176, allocations: 199.4 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.185/1.185, allocations: 226.5 MB / 244.7 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006973/0.0006973, allocations: 99.28 kB / 296.7 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002055, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1916, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.00211/0.1938, allocations: 2.412 MB / 410.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.1948, allocations: 0.7927 MB / 411.3 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.195, allocations: 6.5 kB / 411.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.1951, allocations: 31.75 kB / 411.4 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.1953, allocations: 95.3 kB / 411.5 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002657/0.1956, allocations: 140.3 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.1959, allocations: 422.4 kB / 412 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.1961, allocations: 95.52 kB / 412.1 MB, free: 23.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.1963, allocations: 157.2 kB / 412.3 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001732/0.1965, allocations: 183.3 kB / 412.5 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.561e-05/0.1965, allocations: 23.94 kB / 412.5 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.934e-05/0.1966, allocations: 24 kB / 412.5 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.749e-05/0.1967, allocations: 67.73 kB / 412.6 MB, free: 23.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.1968, allocations: 180.9 kB / 412.7 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.197, allocations: 336.3 kB / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.197, allocations: 0 / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.197, allocations: 0 / 413.1 MB, free: 22.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.197, allocations: 0 / 413.1 MB, free: 22.73 MB / 298.7 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.001108/0.1982, allocations: 0.6352 MB / 413.7 MB, free: 22.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.1982, allocations: 16.02 kB / 413.7 MB, free: 22.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.449e-05/0.1983, allocations: 58.67 kB / 413.8 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.1984, allocations: 44.55 kB / 413.8 MB, free: 21.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.1987, allocations: 298.7 kB / 414.1 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.009e-05/0.1988, allocations: 50.69 kB / 414.2 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.1988, allocations: 24.38 kB / 414.2 MB, free: 21.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003743/0.1992, allocations: 284.3 kB / 414.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1992, allocations: 7.938 kB / 414.5 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.1992, allocations: 8 kB / 414.5 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.1993, allocations: 8 kB / 414.5 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003031/0.1996, allocations: 165.7 kB / 414.6 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.2014, allocations: 1.064 MB / 415.7 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.2017, allocations: 122.5 kB / 415.8 MB, free: 19.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2019, allocations: 88.83 kB / 415.9 MB, free: 19.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.2019, allocations: 4 kB / 415.9 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.486e-05/0.2019, allocations: 38.55 kB / 416 MB, free: 19.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.2019, allocations: 0 / 416 MB, free: 19.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008016/0.2027, allocations: 453.4 kB / 416.4 MB, free: 19.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.2028, allocations: 158.2 kB / 416.6 MB, free: 18.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.203, allocations: 274.5 kB / 416.8 MB, free: 18.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.203, allocations: 25.7 kB / 416.9 MB, free: 18.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.985e-05/0.2031, allocations: 180.1 kB / 417 MB, free: 18.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.2032, allocations: 51.27 kB / 417.1 MB, free: 18.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/0.2032, allocations: 4 kB / 417.1 MB, free: 18.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.584e-05/0.2032, allocations: 338.8 kB / 417.4 MB, free: 18.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.2034, allocations: 91.95 kB / 417.5 MB, free: 17.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.2036, allocations: 136.5 kB / 417.6 MB, free: 17.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.2039, allocations: 168.1 kB / 417.8 MB, free: 17.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2039, allocations: 4 kB / 417.8 MB, free: 17.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.006972/0.2109, allocations: 0.8956 MB / 418.7 MB, free: 16.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2109, allocations: 7.938 kB / 418.7 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2109, allocations: 0 / 418.7 MB, free: 16.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008336/0.2193, allocations: 0.8443 MB / 419.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.2195, allocations: 19.98 kB / 419.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007064/0.2265, allocations: 4.488 MB / 424.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.2268, allocations: 27.83 kB / 424.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.094e-05/0.2269, allocations: 12.05 kB / 424.1 MB, free: 11.05 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {4 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.227, allocations: 147 kB / 424.2 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.622e-05/0.2271, allocations: 27.66 kB / 424.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.2271, allocations: 29.77 kB / 424.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2271, allocations: 4 kB / 424.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.2271, allocations: 0 / 424.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2271, allocations: 0 / 424.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000724/0.2279, allocations: 0.6256 MB / 424.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.2279, allocations: 4 kB / 424.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.228, allocations: 24.02 kB / 425 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001528/0.2282, allocations: 53.61 kB / 425 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.2282, allocations: 4 kB / 425 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.2293, allocations: 2.674 MB / 427.7 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2294, allocations: 0 / 427.7 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004004/0.2298, allocations: 325.3 kB / 428 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.044e-05/0.2298, allocations: 104.8 kB / 428.1 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.2299, allocations: 7.938 kB / 428.1 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.2301, allocations: 19.98 kB / 428.1 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.2301, allocations: 11.92 kB / 428.1 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.2301, allocations: 7.984 kB / 428.2 MB, free: 6.613 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001458/0.2303, allocations: 198 kB / 428.3 MB, free: 6.418 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2303, allocations: 0 / 428.3 MB, free: 6.418 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00045/0.2308, allocations: 99.78 kB / 428.4 MB, free: 6.32 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005534/0.2313, allocations: 0.8513 MB / 429.3 MB, free: 5.434 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.2326, allocations: 0.5596 MB / 429.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2326, allocations: 0 / 429.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.233, allocations: 317.2 kB / 430.2 MB, free: 4.512 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.2334, allocations: 44.72 kB / 430.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008525/0.242, allocations: 2.254 MB / 432.5 MB, free: 2.148 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001669/0.2422, allocations: 0.7635 MB / 433.2 MB, free: 1.359 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.2423, allocations: 91.39 kB / 433.3 MB, free: 1.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2423, allocations: 0 / 433.3 MB, free: 1.27 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.357/3.6, allocations: 6.915 MB / 440.2 MB, free: 10.36 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_Lines_LightningLosslessTransmissionLine.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine.pipe 2>&1)