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.001304/0.001304, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 63.41 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1333, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Lines.LightningLosslessTransmissionLine): time 0.004383/0.1377, allocations: 2.839 MB / 360.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.1396, allocations: 0.8649 MB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.1399, allocations: 0 / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.1401, allocations: 39.58 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004369/0.1406, allocations: 123.1 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005383/0.1411, allocations: 199.6 kB / 361.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005482/0.1417, allocations: 490.3 kB / 362.1 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002397/0.1419, allocations: 121.4 kB / 362.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003868/0.1423, allocations: 187.4 kB / 362.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004434/0.1428, allocations: 215.2 kB / 362.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.053e-05/0.1429, allocations: 44 kB / 362.7 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.143, allocations: 44 kB / 362.7 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.1431, allocations: 107.6 kB / 362.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.1433, allocations: 179.2 kB / 363 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004715/0.1438, allocations: 458.5 kB / 363.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1438, allocations: 0 / 363.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1438, allocations: 0 / 363.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.1439, allocations: 4 kB / 363.5 MB, free: 8.078 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.001617/0.1455, allocations: 0.6857 MB / 364.1 MB, free: 7.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.1455, allocations: 12.03 kB / 364.2 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.368e-05/0.1456, allocations: 54.73 kB / 364.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.1459, allocations: 48.55 kB / 364.3 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.1464, allocations: 303.5 kB / 364.6 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.563e-05/0.1465, allocations: 50.69 kB / 364.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.1465, allocations: 24.38 kB / 364.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.1471, allocations: 276.3 kB / 364.9 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.1471, allocations: 7.984 kB / 364.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.1471, allocations: 12 kB / 364.9 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.1472, allocations: 4 kB / 364.9 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003534/0.1475, allocations: 161.7 kB / 365.1 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.15, allocations: 1.048 MB / 366.1 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.1503, allocations: 118.5 kB / 366.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001926/0.1505, allocations: 84.83 kB / 366.3 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.1505, allocations: 7.984 kB / 366.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.1506, allocations: 38.55 kB / 366.4 MB, free: 4.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.1506, allocations: 0 / 366.4 MB, free: 4.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009878/0.1516, allocations: 441 kB / 366.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.029e-05/0.1517, allocations: 166.1 kB / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003337/0.152, allocations: 278.4 kB / 367.2 MB, free: 3.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.152, allocations: 25.7 kB / 367.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1522, allocations: 180.1 kB / 367.4 MB, free: 3.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.521e-05/0.1522, allocations: 51.3 kB / 367.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.1523, allocations: 45.69 kB / 367.5 MB, free: 3.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.1525, allocations: 334.8 kB / 367.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.1527, allocations: 87.95 kB / 367.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.1529, allocations: 129.1 kB / 368.1 MB, free: 3.098 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.1532, allocations: 164.1 kB / 368.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1532, allocations: 0 / 368.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.007483/0.1607, allocations: 0.9003 MB / 369.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.1608, allocations: 8 kB / 369.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1608, allocations: 48 / 369.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008867/0.1696, allocations: 0.8326 MB / 370 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.1698, allocations: 19.98 kB / 370 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1744/0.3442, allocations: 4.887 MB / 374.9 MB, free: 16.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.3445, allocations: 29.89 kB / 374.9 MB, free: 16.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.3446, allocations: 8.703 kB / 374.9 MB, free: 16.96 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.0001515/0.3447, allocations: 144.2 kB / 375.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.059e-05/0.3448, allocations: 27.91 kB / 375.1 MB, free: 16.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.378e-05/0.3449, allocations: 26.7 kB / 375.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3449, allocations: 2.219 kB / 375.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.3449, allocations: 1.125 kB / 375.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3449, allocations: 2.391 kB / 375.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009748/0.3459, allocations: 0.6162 MB / 375.7 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3459, allocations: 1.797 kB / 375.7 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.346, allocations: 20.53 kB / 375.8 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001979/0.3462, allocations: 53 kB / 375.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.3463, allocations: 7.969 kB / 375.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002428/0.3487, allocations: 2.942 MB / 378.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3487, allocations: 0.8125 kB / 378.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007749/0.3495, allocations: 313.8 kB / 379.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.3496, allocations: 101.6 kB / 379.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/0.3497, allocations: 6.281 kB / 379.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.3499, allocations: 13.69 kB / 379.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.3501, allocations: 39.17 kB / 379.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.3502, allocations: 5.422 kB / 379.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004489/0.3507, allocations: 197 kB / 379.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3507, allocations: 0 / 379.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009402/0.3516, allocations: 97.45 kB / 379.5 MB, free: 12.94 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.001157/0.3528, allocations: 0.8497 MB / 380.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.3545, allocations: 0.5492 MB / 380.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.3545, allocations: 1.156 kB / 380.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004145/0.3549, allocations: 329.6 kB / 381.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004408/0.3554, allocations: 49.39 kB / 381.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/0.3742, allocations: 3.981 MB / 385.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.3745, allocations: 0.7617 MB / 386 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001679/0.3747, allocations: 23.75 kB / 386 MB, free: 8.906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.3749, allocations: 93.56 kB / 386.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of SimCode: time 1.613e-06/0.3749, allocations: 3.828 kB / 386.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5993/0.9742, allocations: 9.802 MB / 395.9 MB, free: 5.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.76/17.74, allocations: 5.766 kB / 395.9 MB, free: 5.336 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)