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.001486/0.001486, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001681/0.001681, allocations: 204 kB / 23.73 MB, free: 4.379 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.538/1.538, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001591/0.001591, allocations: 51.92 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2828, allocations: 53.36 MB / 431.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004333/0.2872, allocations: 2.695 MB / 434.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.2889, allocations: 0.8689 MB / 435.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.289, allocations: 7.938 kB / 435.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.2892, allocations: 55.45 kB / 435.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003475/0.2896, allocations: 119.2 kB / 435.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.29, allocations: 227.6 kB / 435.6 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006241/0.2906, allocations: 0.5335 MB / 436.1 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.2908, allocations: 79.59 kB / 436.2 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002465/0.2911, allocations: 207.2 kB / 436.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003449/0.2914, allocations: 231.1 kB / 436.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.77e-05/0.2915, allocations: 48 kB / 436.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.676e-05/0.2915, allocations: 48 kB / 436.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2917, allocations: 99.72 kB / 436.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001999/0.2919, allocations: 171.2 kB / 437 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005897/0.2924, allocations: 0.4927 MB / 437.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2924, allocations: 0 / 437.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2925, allocations: 0 / 437.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.2925, allocations: 0 / 437.4 MB, free: 0.8672 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.001872/0.2943, allocations: 0.6765 MB / 438.1 MB, free: 164 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.2944, allocations: 8.031 kB / 438.1 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.2945, allocations: 48.64 kB / 438.2 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005637/0.295, allocations: 277.3 kB / 438.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.2952, allocations: 135.8 kB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/0.2953, allocations: 24.38 kB / 438.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/0.2958, allocations: 368.2 kB / 439 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.2959, allocations: 3.953 kB / 439 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.2959, allocations: 12 kB / 439 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.2959, allocations: 8 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.2963, allocations: 161.2 kB / 439.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002945/0.2992, allocations: 1.29 MB / 440.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.2994, allocations: 101.2 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.2995, allocations: 49.81 kB / 440.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.2996, allocations: 0 / 440.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.2996, allocations: 38.56 kB / 440.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.002e-06/0.2996, allocations: 3.938 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003507/0.3031, allocations: 0.925 MB / 441.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.99e-05/0.3032, allocations: 106.8 kB / 441.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004285/0.3036, allocations: 328.3 kB / 442 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.697e-05/0.3037, allocations: 29.7 kB / 442 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.3039, allocations: 220.3 kB / 442.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.8e-05/0.3039, allocations: 39.64 kB / 442.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001722/0.3041, allocations: 81.59 kB / 442.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.3043, allocations: 338.8 kB / 442.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.3046, allocations: 151.9 kB / 442.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000439/0.3051, allocations: 280.6 kB / 443.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006872/0.3058, allocations: 354.1 kB / 443.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3058, allocations: 0 / 443.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01089/0.3167, allocations: 1.303 MB / 444.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3167, allocations: 8 kB / 444.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3167, allocations: 64 / 444.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01313/0.3298, allocations: 1.153 MB / 445.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005037/0.3303, allocations: 75.86 kB / 446 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01234/0.3427, allocations: 4.999 MB / 451 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007106/0.3434, allocations: 31.98 kB / 451 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.3434, allocations: 15.97 kB / 451 MB, free: 2.652 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.0002502/0.3437, allocations: 153.7 kB / 451.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.331e-05/0.3438, allocations: 27.81 kB / 451.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.276e-05/0.3438, allocations: 29.89 kB / 451.2 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.3438, allocations: 3.938 kB / 451.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3438, allocations: 4 kB / 451.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3438, allocations: 0 / 451.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.345, allocations: 0.6299 MB / 451.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.345, allocations: 7.984 kB / 451.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004157/0.3454, allocations: 47.89 kB / 451.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.3454, allocations: 4 kB / 451.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3454, allocations: 3.984 kB / 451.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3454, allocations: 0 / 451.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3454, allocations: 0 / 451.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008866/0.3463, allocations: 0.5258 MB / 452.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.876e-05/0.3464, allocations: 31.73 kB / 452.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.3464, allocations: 4 kB / 452.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000448/0.3469, allocations: 28.05 kB / 452.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.307e-05/0.3469, allocations: 11.97 kB / 452.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.328e-05/0.347, allocations: 15.92 kB / 452.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002425/0.3472, allocations: 219.1 kB / 452.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3472, allocations: 0 / 452.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005586/0.3478, allocations: 100.1 kB / 452.9 MB, free: 0.7539 MB / 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.0001373/0.3479, allocations: 99.25 kB / 453 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.3502, allocations: 0.7354 MB / 453.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3502, allocations: 0 / 453.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.3504, allocations: 99.86 kB / 453.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005911/0.351, allocations: 78.53 kB / 453.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.3524, allocations: 0.5929 MB / 454.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001722/0.3525, allocations: 173 kB / 454.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001707/0.3527, allocations: 35.27 kB / 454.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.3528, allocations: 27.41 kB / 454.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3528, allocations: 0 / 454.7 MB, free: 14.85 MB / 366.1 MB Notification: Performance of Templates: time 0.01606/0.3689, allocations: 10.29 MB / 465 MB, free: 4.633 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] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.403390618041158]