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.001754/0.001754, allocations: 131.4 kB / 17.8 MB, free: 5.219 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.00209/0.00209, allocations: 211.6 kB / 20.75 MB, free: 2.27 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.616/1.616, allocations: 230.5 MB / 254 MB, free: 15.16 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.002983/0.002983, allocations: 55.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.152, allocations: 53.38 MB / 426.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.006565/0.1586, allocations: 2.904 MB / 429.3 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002346/0.1609, allocations: 0.8923 MB / 430.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002763/0.1612, allocations: 11.94 kB / 430.2 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002355/0.1614, allocations: 55.44 kB / 430.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000423/0.1618, allocations: 127.1 kB / 430.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.1624, allocations: 227.6 kB / 430.6 MB, free: 392 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007937/0.1632, allocations: 0.5297 MB / 431.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002381/0.1634, allocations: 82.97 kB / 431.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003004/0.1637, allocations: 207.3 kB / 431.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004/0.1641, allocations: 227.1 kB / 431.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.1642, allocations: 47.98 kB / 431.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.865e-05/0.1643, allocations: 48 kB / 431.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.1644, allocations: 95.72 kB / 431.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002586/0.1647, allocations: 211 kB / 432 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007361/0.1654, allocations: 0.4903 MB / 432.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.1654, allocations: 4 kB / 432.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1654, allocations: 3.938 kB / 432.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.1654, allocations: 0 / 432.5 MB, free: 14.45 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.002158/0.1676, allocations: 0.7441 MB / 433.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1677, allocations: 8.031 kB / 433.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.685e-05/0.1678, allocations: 58.73 kB / 433.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1679, allocations: 40.7 kB / 433.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000678/0.1685, allocations: 335.6 kB / 433.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/0.1687, allocations: 88.52 kB / 433.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.373e-05/0.1688, allocations: 24.38 kB / 433.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006221/0.1694, allocations: 287.7 kB / 434.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/0.1694, allocations: 3.953 kB / 434.1 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.1695, allocations: 16 kB / 434.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.1695, allocations: 4 kB / 434.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004832/0.1699, allocations: 169.2 kB / 434.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003685/0.1736, allocations: 1.465 MB / 435.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/0.1739, allocations: 105.2 kB / 435.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.1741, allocations: 49.81 kB / 435.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.1741, allocations: 11.92 kB / 435.9 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.1741, allocations: 38.5 kB / 435.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/0.1741, allocations: 0 / 435.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.004293/0.1784, allocations: 1.073 MB / 437 MB, free: 9.602 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.1786, allocations: 106.8 kB / 437.1 MB, free: 9.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/0.1791, allocations: 324.5 kB / 437.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.887e-05/0.1792, allocations: 33.7 kB / 437.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.1795, allocations: 204.4 kB / 437.7 MB, free: 8.914 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.897e-05/0.1796, allocations: 59.58 kB / 437.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.1798, allocations: 69.66 kB / 437.8 MB, free: 8.781 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002935/0.1801, allocations: 342.8 kB / 438.1 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005036/0.1806, allocations: 152 kB / 438.3 MB, free: 8.289 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006033/0.1812, allocations: 258.7 kB / 438.5 MB, free: 7.996 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009459/0.1821, allocations: 350.1 kB / 438.9 MB, free: 7.617 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1821, allocations: 3.938 kB / 438.9 MB, free: 7.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01229/0.1944, allocations: 1.306 MB / 440.2 MB, free: 6.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.984e-05/0.1944, allocations: 10.03 kB / 440.2 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.1945, allocations: 4 kB / 440.2 MB, free: 6.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01368/0.2081, allocations: 1.149 MB / 441.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006158/0.2088, allocations: 67.88 kB / 441.4 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3249/0.5336, allocations: 5.336 MB / 446.7 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007837/0.5344, allocations: 32.75 kB / 446.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.089e-05/0.5345, allocations: 21.34 kB / 446.8 MB, free: 22.34 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.0002724/0.5347, allocations: 146.2 kB / 446.9 MB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.5349, allocations: 33.58 kB / 447 MB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.061e-05/0.5349, allocations: 27.92 kB / 447 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.5349, allocations: 2.125 kB / 447 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.5349, allocations: 1.266 kB / 447 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.5349, allocations: 1.984 kB / 447 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001438/0.5364, allocations: 0.7611 MB / 447.8 MB, free: 21.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5364, allocations: 0 / 447.8 MB, free: 21.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.5368, allocations: 52.7 kB / 447.8 MB, free: 21.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.5368, allocations: 1.719 kB / 447.8 MB, free: 21.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.5368, allocations: 7.297 kB / 447.8 MB, free: 21.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.5368, allocations: 1.812 kB / 447.8 MB, free: 21.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.5368, allocations: 5.812 kB / 447.8 MB, free: 21.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009656/0.5378, allocations: 0.518 MB / 448.3 MB, free: 21.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.195e-05/0.5379, allocations: 107 kB / 448.4 MB, free: 21.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.5379, allocations: 4.219 kB / 448.5 MB, free: 21.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000406/0.5383, allocations: 34.83 kB / 448.5 MB, free: 21.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.5384, allocations: 18.44 kB / 448.5 MB, free: 21.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.5384, allocations: 6.531 kB / 448.5 MB, free: 21.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003194/0.5387, allocations: 225.4 kB / 448.7 MB, free: 21.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5387, allocations: 0 / 448.7 MB, free: 21.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000639/0.5394, allocations: 96.88 kB / 448.8 MB, free: 21.47 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.00127/0.5406, allocations: 1.057 MB / 449.9 MB, free: 20.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002622/0.5433, allocations: 0.7317 MB / 450.6 MB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.5433, allocations: 0 / 450.6 MB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.5436, allocations: 96.53 kB / 450.7 MB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/0.5443, allocations: 76.02 kB / 450.8 MB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/0.5672, allocations: 5.206 MB / 456 MB, free: 18.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.5675, allocations: 0.7759 MB / 456.8 MB, free: 17.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002419/0.5677, allocations: 27.23 kB / 456.8 MB, free: 17.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002071/0.5679, allocations: 112.3 kB / 456.9 MB, free: 17.59 MB / 366.1 MB Notification: Performance of SimCode: time 1.593e-06/0.5679, allocations: 0 / 456.9 MB, free: 17.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04632/0.6143, allocations: 11.77 MB / 468.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.28, allocations: 13.78 kB / 468.7 MB, free: 14.37 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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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: 16.040125181083567] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 13.384504500078037 13.40025393 13.231326842 Calling exit ...