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.001724/0.001724, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002107/0.002107, allocations: 214.8 kB / 24.48 MB, free: 3.941 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.439/1.439, allocations: 230.6 MB / 258.2 MB, free: 7.734 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.001563/0.001563, allocations: 51.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2445, allocations: 53.37 MB / 432.4 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004237/0.2487, allocations: 2.7 MB / 435.1 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.2503, allocations: 0.865 MB / 435.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.2504, allocations: 7.938 kB / 435.9 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.2506, allocations: 51.44 kB / 436 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003311/0.251, allocations: 123.2 kB / 436.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.2513, allocations: 223.6 kB / 436.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000582/0.2519, allocations: 0.5334 MB / 436.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.2521, allocations: 87.56 kB / 436.9 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.2524, allocations: 203.3 kB / 437.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003235/0.2527, allocations: 227.1 kB / 437.4 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.924e-05/0.2528, allocations: 44 kB / 437.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.997e-05/0.2528, allocations: 48 kB / 437.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.926e-05/0.2529, allocations: 103.7 kB / 437.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.2531, allocations: 171.2 kB / 437.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005602/0.2537, allocations: 0.4893 MB / 438.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2537, allocations: 4 kB / 438.2 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2537, allocations: 3.938 kB / 438.2 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2537, allocations: 3.938 kB / 438.2 MB, free: 0.8398 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.001834/0.2555, allocations: 0.6765 MB / 438.9 MB, free: 136 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2556, allocations: 8.031 kB / 438.9 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.2557, allocations: 40.7 kB / 438.9 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005572/0.2562, allocations: 273.3 kB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.2564, allocations: 131.9 kB / 439.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.005e-05/0.2565, allocations: 32.38 kB / 439.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.257, allocations: 360.2 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.257, allocations: 7.938 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.2571, allocations: 12 kB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.2571, allocations: 4 kB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000371/0.2575, allocations: 165.3 kB / 439.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.2606, allocations: 1.286 MB / 441.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.2608, allocations: 105.2 kB / 441.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.2609, allocations: 45.83 kB / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.524e-05/0.2609, allocations: 4 kB / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.261, allocations: 46.44 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.261, allocations: 4 kB / 441.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003428/0.2644, allocations: 0.9133 MB / 442.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.05e-05/0.2645, allocations: 110.8 kB / 442.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000377/0.2649, allocations: 328.3 kB / 442.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.535e-05/0.2649, allocations: 29.7 kB / 442.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.2651, allocations: 220.3 kB / 443 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.225e-05/0.2651, allocations: 47.62 kB / 443 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.2653, allocations: 77.61 kB / 443.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2655, allocations: 338.8 kB / 443.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003875/0.2658, allocations: 155.9 kB / 443.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004591/0.2663, allocations: 272.6 kB / 443.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006995/0.267, allocations: 354.1 kB / 444.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.267, allocations: 4 kB / 444.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01136/0.2784, allocations: 1.31 MB / 445.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.2784, allocations: 4 kB / 445.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2784, allocations: 4 kB / 445.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01343/0.2918, allocations: 1.157 MB / 446.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004737/0.2923, allocations: 67.88 kB / 446.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/0.3045, allocations: 4.985 MB / 451.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006051/0.3051, allocations: 31.98 kB / 451.8 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.928e-05/0.3052, allocations: 23.97 kB / 451.8 MB, free: 2.633 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.0002119/0.3054, allocations: 149.7 kB / 451.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.359e-05/0.3055, allocations: 27.81 kB / 451.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.3055, allocations: 25.89 kB / 452 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3055, allocations: 0 / 452 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.3055, allocations: 96 / 452 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3055, allocations: 7.984 kB / 452 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.3067, allocations: 0.6377 MB / 452.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3067, allocations: 0 / 452.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.3071, allocations: 47.89 kB / 452.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.3071, allocations: 3.984 kB / 452.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.3071, allocations: 11.98 kB / 452.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.3071, allocations: 0 / 452.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3071, allocations: 0 / 452.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008663/0.308, allocations: 0.5202 MB / 453.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.3081, allocations: 31.83 kB / 453.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.3081, allocations: 8.062 kB / 453.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.3085, allocations: 23.98 kB / 453.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.654e-05/0.3086, allocations: 19.95 kB / 453.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/0.3086, allocations: 15.86 kB / 453.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002432/0.3089, allocations: 219.1 kB / 453.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3089, allocations: 0 / 453.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005201/0.3094, allocations: 100 kB / 453.6 MB, free: 0.7344 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.0001227/0.3095, allocations: 99.23 kB / 453.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.3117, allocations: 0.7315 MB / 454.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.173e-05/0.3118, allocations: 4 kB / 454.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.312, allocations: 92.11 kB / 454.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/0.3126, allocations: 80.3 kB / 454.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.314, allocations: 0.5952 MB / 455.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.3141, allocations: 173 kB / 455.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001696/0.3143, allocations: 34.95 kB / 455.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.3144, allocations: 27.41 kB / 455.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3144, allocations: 7.938 kB / 455.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Templates: time 0.01619/0.3306, allocations: 10.3 MB / 465.7 MB, free: 4.609 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins1/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: 4.886078143012128]