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.001835/0.001835, allocations: 112.4 kB / 18.5 MB, free: 4.543 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.002327/0.002327, allocations: 208.9 kB / 21.46 MB, free: 1.586 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.466/1.466, allocations: 230.5 MB / 254.7 MB, free: 15 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.001909/0.001909, allocations: 71.89 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1056, allocations: 53.31 MB / 426.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004471/0.1101, allocations: 2.9 MB / 429.8 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.1119, allocations: 0.9001 MB / 430.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.1121, allocations: 11.94 kB / 430.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002152/0.1123, allocations: 55.44 kB / 430.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000345/0.1127, allocations: 115.2 kB / 430.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.1131, allocations: 223.6 kB / 431.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006071/0.1137, allocations: 0.5374 MB / 431.6 MB, free: 84 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.1139, allocations: 75.11 kB / 431.7 MB, free: 4 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.1144, allocations: 203.4 kB / 431.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003421/0.1147, allocations: 226.4 kB / 432.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.662e-05/0.1148, allocations: 45.69 kB / 432.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.292e-05/0.1149, allocations: 47.34 kB / 432.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.341e-05/0.115, allocations: 102.8 kB / 432.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.1151, allocations: 204.8 kB / 432.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005139/0.1156, allocations: 0.4887 MB / 433 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1157, allocations: 0 / 433 MB, free: 7.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1157, allocations: 0 / 433 MB, free: 7.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1157, allocations: 1.188 kB / 433 MB, free: 7.633 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.001647/0.1173, allocations: 0.7563 MB / 433.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.1174, allocations: 11.34 kB / 433.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.757e-05/0.1174, allocations: 59.17 kB / 433.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.077e-05/0.1175, allocations: 42.8 kB / 433.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004702/0.118, allocations: 333 kB / 434.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.974e-05/0.1181, allocations: 81.28 kB / 434.3 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.32e-05/0.1181, allocations: 30.56 kB / 434.3 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003977/0.1185, allocations: 286.1 kB / 434.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.1185, allocations: 3.953 kB / 434.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.1186, allocations: 9.469 kB / 434.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.1186, allocations: 6.562 kB / 434.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003322/0.1189, allocations: 170.2 kB / 434.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00262/0.1215, allocations: 1.467 MB / 436.2 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.1217, allocations: 97.12 kB / 436.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.1218, allocations: 54.45 kB / 436.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.1218, allocations: 5.078 kB / 436.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.1218, allocations: 36.25 kB / 436.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.1219, allocations: 1.125 kB / 436.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.002974/0.1248, allocations: 1.077 MB / 437.5 MB, free: 5.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.157e-05/0.1249, allocations: 113.3 kB / 437.6 MB, free: 5.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003732/0.1253, allocations: 322.8 kB / 437.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.1253, allocations: 30.55 kB / 438 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.1254, allocations: 209.5 kB / 438.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.803e-05/0.1255, allocations: 52.97 kB / 438.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001484/0.1256, allocations: 71.89 kB / 438.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.805e-05/0.1257, allocations: 344 kB / 438.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004022/0.1261, allocations: 150.9 kB / 438.8 MB, free: 4.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004747/0.1266, allocations: 255.5 kB / 439 MB, free: 4.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006523/0.1272, allocations: 343.2 kB / 439.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1272, allocations: 0 / 439.4 MB, free: 4.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009324/0.1366, allocations: 1.314 MB / 440.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.1366, allocations: 10.53 kB / 440.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1366, allocations: 2.25 kB / 440.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/0.1471, allocations: 1.157 MB / 441.8 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004692/0.1476, allocations: 66.77 kB / 441.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.1577, allocations: 5.341 MB / 447.3 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006268/0.1583, allocations: 36.83 kB / 447.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.1584, allocations: 24.03 kB / 447.3 MB, free: 4 kB / 350.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.0002512/0.1586, allocations: 149.6 kB / 447.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.483e-05/0.1587, allocations: 28.44 kB / 447.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.857e-05/0.1587, allocations: 25.89 kB / 447.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1588, allocations: 2.156 kB / 447.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1588, allocations: 1.031 kB / 447.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1588, allocations: 4.828 kB / 447.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.16, allocations: 0.7527 MB / 448.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.16, allocations: 0 / 448.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003569/0.1604, allocations: 48.94 kB / 448.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.1604, allocations: 3.516 kB / 448.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.1604, allocations: 12.92 kB / 448.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1604, allocations: 4.359 kB / 448.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1604, allocations: 1.344 kB / 448.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008528/0.1612, allocations: 0.5105 MB / 448.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.1613, allocations: 107.5 kB / 449 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.005e-05/0.1614, allocations: 14.41 kB / 449 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004002/0.1618, allocations: 27.61 kB / 449 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/0.1619, allocations: 15.83 kB / 449 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.1619, allocations: 8.188 kB / 449 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002513/0.1622, allocations: 223.6 kB / 449.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1622, allocations: 3.938 kB / 449.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000542/0.1627, allocations: 97.81 kB / 449.3 MB, free: 14.71 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.001241/0.1639, allocations: 1.058 MB / 450.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.166, allocations: 0.7403 MB / 451.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.166, allocations: 0 / 451.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002548/0.1663, allocations: 95.64 kB / 451.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005788/0.1669, allocations: 69.91 kB / 451.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/0.1907, allocations: 5.213 MB / 456.5 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006395/0.1914, allocations: 0.7787 MB / 457.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003608/0.1917, allocations: 29.7 kB / 457.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.1919, allocations: 107.7 kB / 457.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.1919, allocations: 0 / 457.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/0.2367, allocations: 11.78 MB / 469.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.18, allocations: 9.453 kB / 469.2 MB, free: 4.371 MB / 366.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_DemonstrateLightning_fmu --startTime=0 --stopTime=0.001 --stepSize=1e-07 --timeout=50 --tolerance=1e-06 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.70650653494522] Failed to read output from testmodel.py, exit status != 0: 12.480425425805151 12.509228489 12.190975152 Calling exit ...