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.001357/0.001357, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001482/0.001482, allocations: 213.5 kB / 24.5 MB, free: 4.148 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.431/1.431, allocations: 230.5 MB / 258.1 MB, free: 8.008 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: 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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 59.91 kB / 379 MB, free: 2.512 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2486, allocations: 53.41 MB / 432.5 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005693/0.2543, allocations: 2.917 MB / 435.4 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.2567, allocations: 0.904 MB / 436.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000238/0.257, allocations: 7.938 kB / 436.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.2572, allocations: 55.44 kB / 436.3 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.2577, allocations: 115.2 kB / 436.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006373/0.2583, allocations: 235.6 kB / 436.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000883/0.2592, allocations: 0.5373 MB / 437.2 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002556/0.2594, allocations: 79.59 kB / 437.3 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000345/0.2598, allocations: 203.3 kB / 437.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004829/0.2603, allocations: 223.1 kB / 437.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001055/0.2604, allocations: 44 kB / 437.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.2605, allocations: 48 kB / 437.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.2606, allocations: 107.6 kB / 437.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002834/0.2609, allocations: 203 kB / 438.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000799/0.2617, allocations: 0.4915 MB / 438.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2617, allocations: 4 kB / 438.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2617, allocations: 0 / 438.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.2617, allocations: 0 / 438.6 MB, free: 0.6172 MB / 334.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.002612/0.2643, allocations: 0.6726 MB / 439.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.2644, allocations: 8.031 kB / 439.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.2645, allocations: 40.7 kB / 439.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007346/0.2652, allocations: 281.3 kB / 439.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.2655, allocations: 131.9 kB / 439.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.847e-05/0.2656, allocations: 28.38 kB / 439.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007562/0.2663, allocations: 291 kB / 440 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.2663, allocations: 7.953 kB / 440 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.2664, allocations: 7.938 kB / 440.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.2664, allocations: 8 kB / 440.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005614/0.267, allocations: 165.2 kB / 440.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004068/0.271, allocations: 1.422 MB / 441.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.2712, allocations: 101.2 kB / 441.7 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.2714, allocations: 53.81 kB / 441.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.2714, allocations: 0 / 441.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.2714, allocations: 38.56 kB / 441.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.2714, allocations: 0 / 441.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003376/0.2748, allocations: 0.9296 MB / 442.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.821e-05/0.2749, allocations: 106.8 kB / 442.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.2753, allocations: 328.4 kB / 443.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.2753, allocations: 29.7 kB / 443.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.2755, allocations: 208.4 kB / 443.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.875e-05/0.2755, allocations: 51.59 kB / 443.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.2757, allocations: 73.66 kB / 443.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.2758, allocations: 330.8 kB / 443.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003758/0.2762, allocations: 163.8 kB / 444 MB, free: 10.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.2767, allocations: 243.8 kB / 444.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007055/0.2774, allocations: 361.7 kB / 444.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2774, allocations: 0 / 444.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0108/0.2882, allocations: 1.31 MB / 445.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.2882, allocations: 8.062 kB / 445.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.2882, allocations: 7.938 kB / 445.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/0.2999, allocations: 1.157 MB / 447.1 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004539/0.3004, allocations: 67.88 kB / 447.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01194/0.3123, allocations: 5.14 MB / 452.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005974/0.3129, allocations: 39.91 kB / 452.3 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.964e-05/0.313, allocations: 19.98 kB / 452.4 MB, free: 2.203 MB / 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.000217/0.3132, allocations: 149.8 kB / 452.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.514e-05/0.3133, allocations: 31.8 kB / 452.5 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.269e-05/0.3133, allocations: 22.62 kB / 452.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3133, allocations: 3.984 kB / 452.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3133, allocations: 4 kB / 452.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3133, allocations: 3.938 kB / 452.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.3145, allocations: 0.723 MB / 453.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3145, allocations: 4 kB / 453.3 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.3149, allocations: 39.95 kB / 453.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.3149, allocations: 8 kB / 453.3 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3149, allocations: 7.922 kB / 453.4 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3149, allocations: 0 / 453.4 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.3149, allocations: 7.984 kB / 453.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008584/0.3158, allocations: 0.518 MB / 453.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.23e-05/0.3159, allocations: 27.8 kB / 453.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.3159, allocations: 12.03 kB / 453.9 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004129/0.3163, allocations: 23.92 kB / 453.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.942e-05/0.3164, allocations: 15.97 kB / 454 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.3164, allocations: 7.984 kB / 454 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002506/0.3167, allocations: 227.1 kB / 454.2 MB, free: 308 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3167, allocations: 0 / 454.2 MB, free: 308 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005141/0.3172, allocations: 100 kB / 454.3 MB, free: 208 kB / 350.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.0001436/0.3173, allocations: 103.1 kB / 454.4 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002104/0.3194, allocations: 0.7393 MB / 455.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3194, allocations: 0 / 455.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.3197, allocations: 92.12 kB / 455.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.3202, allocations: 75.88 kB / 455.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.3216, allocations: 0.6292 MB / 455.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.322, allocations: 0.7756 MB / 456.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3222, allocations: 35.39 kB / 456.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3222, allocations: 4 kB / 456.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of Templates: time 0.01007/0.3322, allocations: 6.695 MB / 463.4 MB, free: 6.977 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.767444439930841] Failed to read output from testmodel.py, exit status != 0: ['time', 'currentSensor1.i', 'currentSensor2.i', 'integrator1.y', 'der1.y', 'integrator2.y', 'der2.y'] 0.3409451369661838 0.355641497 0.090434994 Calling exit ...