Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001263/0.001264, allocations: 117.4 kB / 18.45 MB, free: 4.617 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.001384/0.001384, allocations: 206.5 kB / 21.41 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 227.7 MB / 251.9 MB, free: 15.89 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemonstrateLightning,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 68.02 kB / 365.2 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1058, allocations: 50.55 MB / 415.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004245/0.1101, allocations: 2.888 MB / 418.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.1116, allocations: 0.8884 MB / 419.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.1118, allocations: 4 kB / 419.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.112, allocations: 51.44 kB / 419.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003076/0.1123, allocations: 123.1 kB / 419.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.1127, allocations: 219.7 kB / 420 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005648/0.1133, allocations: 0.5374 MB / 420.5 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.1135, allocations: 111.1 kB / 420.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.1137, allocations: 199.3 kB / 420.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003086/0.1141, allocations: 227.1 kB / 421 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.679e-05/0.1141, allocations: 48 kB / 421.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.574e-05/0.1142, allocations: 48 kB / 421.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.905e-05/0.1143, allocations: 95.7 kB / 421.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.1145, allocations: 207 kB / 421.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005458/0.1151, allocations: 0.4942 MB / 421.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1151, allocations: 0 / 421.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1151, allocations: 0 / 421.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.1151, allocations: 0 / 421.9 MB, free: 7.434 MB / 350.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.001665/0.1168, allocations: 0.7557 MB / 422.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.1168, allocations: 12.03 kB / 422.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.542e-05/0.1169, allocations: 54.73 kB / 422.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.406e-05/0.117, allocations: 44.7 kB / 422.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004786/0.1175, allocations: 327.6 kB / 423.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.1176, allocations: 84.45 kB / 423.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/0.1177, allocations: 28.38 kB / 423.2 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.1182, allocations: 287.7 kB / 423.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1182, allocations: 7.891 kB / 423.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.1182, allocations: 12 kB / 423.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.1183, allocations: 8 kB / 423.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003661/0.1186, allocations: 165.2 kB / 423.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/0.1215, allocations: 1.469 MB / 425.1 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.1218, allocations: 105.2 kB / 425.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.1219, allocations: 53.83 kB / 425.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.1219, allocations: 3.984 kB / 425.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.1219, allocations: 34.5 kB / 425.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.914e-06/0.122, allocations: 3.938 kB / 425.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003208/0.1252, allocations: 1.083 MB / 426.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.892e-05/0.1253, allocations: 106.8 kB / 426.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003709/0.1256, allocations: 328.4 kB / 426.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.1257, allocations: 29.7 kB / 426.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.1259, allocations: 212.4 kB / 427.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.655e-05/0.1259, allocations: 47.58 kB / 427.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.1261, allocations: 73.66 kB / 427.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1262, allocations: 342.8 kB / 427.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003583/0.1266, allocations: 151.9 kB / 427.7 MB, free: 1.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.1271, allocations: 259.7 kB / 427.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000675/0.1278, allocations: 341.8 kB / 428.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1278, allocations: 0 / 428.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009251/0.1371, allocations: 1.322 MB / 429.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.1371, allocations: 10.34 kB / 429.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.1372, allocations: 4 kB / 429.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01068/0.1479, allocations: 1.157 MB / 430.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.1484, allocations: 71.86 kB / 430.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/0.1598, allocations: 5.333 MB / 436.2 MB, free: 8.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005913/0.1604, allocations: 35.91 kB / 436.2 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.1605, allocations: 19.98 kB / 436.2 MB, free: 8.336 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.0002214/0.1607, allocations: 151.2 kB / 436.4 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.33e-05/0.1608, allocations: 35.8 kB / 436.4 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.1608, allocations: 18.62 kB / 436.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.1608, allocations: 7.984 kB / 436.4 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1608, allocations: 192 / 436.4 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1609, allocations: 3.938 kB / 436.4 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.162, allocations: 0.7591 MB / 437.2 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.162, allocations: 0 / 437.2 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.1624, allocations: 51.88 kB / 437.2 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.1624, allocations: 3.938 kB / 437.2 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.1625, allocations: 11.98 kB / 437.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1625, allocations: 0 / 437.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1625, allocations: 0 / 437.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008849/0.1634, allocations: 0.5138 MB / 437.8 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1635, allocations: 108.9 kB / 437.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.896e-05/0.1635, allocations: 7.938 kB / 437.9 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000385/0.1639, allocations: 32.03 kB / 437.9 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.904e-05/0.164, allocations: 11.98 kB / 437.9 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.164, allocations: 11.92 kB / 437.9 MB, free: 6.516 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002508/0.1643, allocations: 227 kB / 438.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1643, allocations: 0 / 438.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005284/0.1648, allocations: 100 kB / 438.3 MB, free: 6.199 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.001326/0.1662, allocations: 1.055 MB / 439.3 MB, free: 5.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.1683, allocations: 0.7433 MB / 440.1 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1683, allocations: 0 / 440.1 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002745/0.1686, allocations: 104.1 kB / 440.2 MB, free: 4.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005759/0.1692, allocations: 72.67 kB / 440.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1999/0.3691, allocations: 5.211 MB / 445.4 MB, free: 28.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002211/0.3693, allocations: 0.7793 MB / 446.2 MB, free: 27.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.3696, allocations: 30.94 kB / 446.2 MB, free: 27.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.3697, allocations: 105.4 kB / 446.3 MB, free: 27.7 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3697, allocations: 0 / 446.3 MB, free: 27.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04017/0.4099, allocations: 11.73 MB / 458.1 MB, free: 25.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.43, allocations: 17.06 kB / 458.1 MB, free: 25.93 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-07 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.80406002199743] Failed to read output from testmodel.py, exit status != 0: 12.526776662911288 12.541966815 12.424115439 Calling exit ...