Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.489/1.489, allocations: 230.6 MB / 254.8 MB, free: 15.21 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|currentSensor1.i|currentSensor2.i|integrator1.y|der1.y|integrator2.y|der2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 55.92 kB / 374.2 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1151, allocations: 53.34 MB / 427.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.00487/0.1199, allocations: 2.903 MB / 430.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.1217, allocations: 0.8923 MB / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003403/0.1221, allocations: 7.938 kB / 431.3 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002492/0.1223, allocations: 55.44 kB / 431.4 MB, free: 400 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004409/0.1228, allocations: 123.1 kB / 431.5 MB, free: 276 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004371/0.1232, allocations: 227.7 kB / 431.7 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006339/0.1239, allocations: 0.5297 MB / 432.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.124, allocations: 79.03 kB / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.1243, allocations: 207.3 kB / 432.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.1246, allocations: 231.1 kB / 432.7 MB, free: 15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.987e-05/0.1247, allocations: 44 kB / 432.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.679e-05/0.1247, allocations: 48 kB / 432.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.616e-05/0.1248, allocations: 95.72 kB / 432.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.125, allocations: 207 kB / 433.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005471/0.1256, allocations: 0.498 MB / 433.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1256, allocations: 8 kB / 433.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1256, allocations: 0 / 433.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.1256, allocations: 0 / 433.6 MB, free: 14.11 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.001769/0.1273, allocations: 0.7441 MB / 434.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.1274, allocations: 8.031 kB / 434.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.1275, allocations: 40.7 kB / 434.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.128, allocations: 339.6 kB / 434.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.1281, allocations: 76.52 kB / 434.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.701e-05/0.1282, allocations: 28.38 kB / 434.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.1287, allocations: 291.9 kB / 435.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1287, allocations: 7.953 kB / 435.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.1287, allocations: 8 kB / 435.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.1287, allocations: 8 kB / 435.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003638/0.1291, allocations: 161.2 kB / 435.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002982/0.1321, allocations: 1.473 MB / 436.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002221/0.1323, allocations: 105.2 kB / 436.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1324, allocations: 53.77 kB / 437 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.1324, allocations: 3.984 kB / 437 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.1325, allocations: 42.56 kB / 437 MB, free: 10.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.1325, allocations: 0 / 437 MB, free: 10.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.003313/0.1358, allocations: 1.068 MB / 438.1 MB, free: 9.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/0.1359, allocations: 118.7 kB / 438.2 MB, free: 9.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003895/0.1363, allocations: 324.5 kB / 438.5 MB, free: 8.875 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.1363, allocations: 29.7 kB / 438.5 MB, free: 8.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.1365, allocations: 208.4 kB / 438.7 MB, free: 8.633 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.1365, allocations: 55.58 kB / 438.8 MB, free: 8.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001584/0.1367, allocations: 69.66 kB / 438.9 MB, free: 8.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1369, allocations: 338.8 kB / 439.2 MB, free: 8.164 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003691/0.1372, allocations: 155.9 kB / 439.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004408/0.1377, allocations: 246.9 kB / 439.6 MB, free: 7.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.1384, allocations: 354 kB / 439.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1384, allocations: 0 / 439.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009634/0.148, allocations: 1.318 MB / 441.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.148, allocations: 12.06 kB / 441.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.148, allocations: 0 / 441.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/0.1592, allocations: 1.149 MB / 442.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.1597, allocations: 63.88 kB / 442.5 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2024/0.3621, allocations: 5.327 MB / 447.8 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005994/0.3627, allocations: 38.56 kB / 447.8 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/0.3627, allocations: 18.27 kB / 447.8 MB, free: 22.57 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.0001833/0.3629, allocations: 151.4 kB / 448 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.069e-05/0.363, allocations: 29.62 kB / 448 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.313e-05/0.363, allocations: 28.08 kB / 448 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.363, allocations: 3.219 kB / 448.1 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.363, allocations: 3.531 kB / 448.1 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.363, allocations: 2.594 kB / 448.1 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.3641, allocations: 0.756 MB / 448.8 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3641, allocations: 1.469 kB / 448.8 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003655/0.3645, allocations: 44.59 kB / 448.9 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3645, allocations: 3.125 kB / 448.9 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.3645, allocations: 9.797 kB / 448.9 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3645, allocations: 1.344 kB / 448.9 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3645, allocations: 5.344 kB / 448.9 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007671/0.3653, allocations: 0.5163 MB / 449.4 MB, free: 21.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.3653, allocations: 110.5 kB / 449.5 MB, free: 21.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.367e-05/0.3654, allocations: 2.688 kB / 449.5 MB, free: 21.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.3658, allocations: 29.84 kB / 449.5 MB, free: 21.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.289e-05/0.3658, allocations: 16.16 kB / 449.6 MB, free: 21.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.3659, allocations: 11.14 kB / 449.6 MB, free: 21.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002036/0.3661, allocations: 225.1 kB / 449.8 MB, free: 21.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3661, allocations: 0 / 449.8 MB, free: 21.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005843/0.3666, allocations: 100.7 kB / 449.9 MB, free: 21.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.0001181/0.3668, allocations: 106 kB / 450 MB, free: 21.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.3687, allocations: 0.7339 MB / 450.7 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3687, allocations: 1 kB / 450.7 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.369, allocations: 93.42 kB / 450.8 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006084/0.3696, allocations: 72.67 kB / 450.9 MB, free: 21.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.3709, allocations: 0.6191 MB / 451.5 MB, free: 21.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.3711, allocations: 0.7828 MB / 452.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.3713, allocations: 35.97 kB / 452.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3713, allocations: 0 / 452.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of Templates: time 0.01155/0.3828, allocations: 6.71 MB / 459 MB, free: 20 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.7909651460067835] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 0.3914762969943695 0.400683026 0.272724639 Calling exit ...