Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001382, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001522/0.001522, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] 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.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 67.89 kB / 373.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1208, allocations: 53.32 MB / 426.7 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004584/0.1254, allocations: 2.893 MB / 429.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.1272, allocations: 0.9001 MB / 430.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.1273, allocations: 4 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000204/0.1275, allocations: 51.45 kB / 430.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.1279, allocations: 127.1 kB / 430.7 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.1283, allocations: 227.6 kB / 430.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006065/0.1289, allocations: 0.5335 MB / 431.4 MB, free: 248 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002116/0.1291, allocations: 79.11 kB / 431.5 MB, free: 164 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.1293, allocations: 199.3 kB / 431.7 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.1297, allocations: 227.1 kB / 431.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.402e-05/0.1298, allocations: 48 kB / 432 MB, free: 15.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.854e-05/0.1298, allocations: 48 kB / 432 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.1299, allocations: 91.72 kB / 432.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002155/0.1301, allocations: 207 kB / 432.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006117/0.1308, allocations: 0.4981 MB / 432.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1308, allocations: 4 kB / 432.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1308, allocations: 0 / 432.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.1308, allocations: 4 kB / 432.8 MB, free: 14.85 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001849/0.1326, allocations: 0.7479 MB / 433.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1327, allocations: 8.031 kB / 433.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.844e-05/0.1327, allocations: 62.72 kB / 433.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.141e-05/0.1328, allocations: 44.7 kB / 433.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.1334, allocations: 331.6 kB / 434 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.1335, allocations: 84.52 kB / 434.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/0.1336, allocations: 28.38 kB / 434.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.1341, allocations: 287.7 kB / 434.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/0.1341, allocations: 7.953 kB / 434.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.1341, allocations: 8 kB / 434.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1341, allocations: 8 kB / 434.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.1345, allocations: 169.2 kB / 434.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002989/0.1375, allocations: 1.476 MB / 436 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.1377, allocations: 97.25 kB / 436.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.1378, allocations: 49.81 kB / 436.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.1378, allocations: 0 / 436.2 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.1378, allocations: 46.5 kB / 436.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.1378, allocations: 3.938 kB / 436.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.003343/0.1412, allocations: 1.068 MB / 437.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.1413, allocations: 114.8 kB / 437.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003832/0.1417, allocations: 324.5 kB / 437.7 MB, free: 9.539 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.1417, allocations: 29.7 kB / 437.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.1419, allocations: 208.4 kB / 438 MB, free: 9.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.829e-05/0.1419, allocations: 55.58 kB / 438 MB, free: 9.242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.1421, allocations: 73.64 kB / 438.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1423, allocations: 334.8 kB / 438.4 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003593/0.1426, allocations: 159.9 kB / 438.6 MB, free: 8.672 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.1431, allocations: 250.9 kB / 438.8 MB, free: 8.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006858/0.1437, allocations: 349.1 kB / 439.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1437, allocations: 0 / 439.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009995/0.1537, allocations: 1.306 MB / 440.5 MB, free: 6.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.1538, allocations: 8 kB / 440.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1538, allocations: 0 / 440.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01106/0.1648, allocations: 1.154 MB / 441.6 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000459/0.1653, allocations: 67.88 kB / 441.7 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2239/0.3892, allocations: 5.333 MB / 447 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.3899, allocations: 38.48 kB / 447.1 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.3899, allocations: 20.75 kB / 447.1 MB, free: 23.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (integrator2.local_reset,integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,1), (4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.3901, allocations: 144.7 kB / 447.2 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.092e-05/0.3902, allocations: 28.31 kB / 447.3 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.3902, allocations: 28.28 kB / 447.3 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3902, allocations: 3.828 kB / 447.3 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.3902, allocations: 5.375 kB / 447.3 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3902, allocations: 1.141 kB / 447.3 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.3913, allocations: 0.7604 MB / 448.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.3913, allocations: 1.984 kB / 448.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/0.3917, allocations: 47.66 kB / 448.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.3917, allocations: 2.438 kB / 448.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.3917, allocations: 9.531 kB / 448.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.3917, allocations: 2.844 kB / 448.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3917, allocations: 0 / 448.1 MB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007289/0.3924, allocations: 0.5252 MB / 448.6 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.3925, allocations: 105.7 kB / 448.7 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/0.3925, allocations: 3.5 kB / 448.7 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004307/0.393, allocations: 28.62 kB / 448.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.393, allocations: 14.92 kB / 448.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.393, allocations: 9.938 kB / 448.8 MB, free: 22.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001923/0.3932, allocations: 225.2 kB / 449 MB, free: 22.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3932, allocations: 3.469 kB / 449 MB, free: 22.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005334/0.3938, allocations: 99.94 kB / 449.1 MB, free: 22.22 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator2.y,integrator1.y) * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008626/0.3946, allocations: 1.055 MB / 450.2 MB, free: 21.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.3965, allocations: 0.7356 MB / 450.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3965, allocations: 0 / 450.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.3967, allocations: 93.67 kB / 451 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.3972, allocations: 76.47 kB / 451.1 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02196/0.4192, allocations: 5.202 MB / 456.3 MB, free: 19.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.4195, allocations: 0.7752 MB / 457.1 MB, free: 18.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002463/0.4197, allocations: 34.95 kB / 457.1 MB, free: 18.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.4199, allocations: 110.2 kB / 457.2 MB, free: 18.38 MB / 366.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4199, allocations: 0 / 457.2 MB, free: 18.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04262/0.4625, allocations: 11.76 MB / 469 MB, free: 15.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.82, allocations: 7.953 kB / 469 MB, free: 15.19 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.184306195005774] Failed to read output from testmodel.py, exit status != 0: 12.920629858970642 12.937005988 12.803271109 Calling exit ...