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.00138/0.00138, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001562/0.001562, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.586/1.586, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001815/0.001815, allocations: 51.92 kB / 373.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1279, allocations: 53.33 MB / 426.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005452/0.1334, allocations: 2.894 MB / 429.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.1352, allocations: 0.9078 MB / 430.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.1354, allocations: 7.938 kB / 430.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.1356, allocations: 51.44 kB / 430.7 MB, free: 496 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000339/0.1359, allocations: 123.1 kB / 430.8 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.1363, allocations: 219.7 kB / 431 MB, free: 152 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2274/0.3637, allocations: 0.5317 MB / 431.5 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.3639, allocations: 78.3 kB / 431.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003087/0.3642, allocations: 207.6 kB / 431.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003215/0.3645, allocations: 224.8 kB / 432 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.85e-05/0.3646, allocations: 47.66 kB / 432.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.147e-05/0.3647, allocations: 46.91 kB / 432.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.212e-05/0.3648, allocations: 100.3 kB / 432.2 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.3649, allocations: 205.8 kB / 432.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005136/0.3655, allocations: 0.4931 MB / 432.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3655, allocations: 3.938 kB / 432.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3655, allocations: 0 / 432.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.425e-06/0.3655, allocations: 2.125 kB / 432.9 MB, free: 8.051 MB / 350.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.001639/0.3671, allocations: 0.7478 MB / 433.7 MB, free: 7.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3672, allocations: 9.75 kB / 433.7 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.3673, allocations: 42.98 kB / 433.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.3678, allocations: 333.5 kB / 434.1 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.3679, allocations: 79.61 kB / 434.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.375e-05/0.3679, allocations: 29.28 kB / 434.2 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004804/0.3684, allocations: 289.6 kB / 434.5 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.3684, allocations: 5.109 kB / 434.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.3685, allocations: 13.12 kB / 434.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.3685, allocations: 8.438 kB / 434.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003939/0.3689, allocations: 164.1 kB / 434.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002847/0.3717, allocations: 1.469 MB / 436.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000205/0.3719, allocations: 102.1 kB / 436.2 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.372, allocations: 46.88 kB / 436.3 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3721, allocations: 5.094 kB / 436.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.3721, allocations: 37.55 kB / 436.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.3721, allocations: 0 / 436.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003397/0.3755, allocations: 1.075 MB / 437.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/0.3755, allocations: 111.7 kB / 437.5 MB, free: 5.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003779/0.3759, allocations: 329.4 kB / 437.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.376, allocations: 31.14 kB / 437.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.3761, allocations: 203 kB / 438 MB, free: 5.285 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.3761, allocations: 59.81 kB / 438.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.3763, allocations: 71.25 kB / 438.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.512e-05/0.3764, allocations: 339.4 kB / 438.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.3767, allocations: 151.4 kB / 438.6 MB, free: 4.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.3772, allocations: 252.8 kB / 438.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006665/0.3778, allocations: 355.5 kB / 439.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3778, allocations: 1.5 kB / 439.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01025/0.3881, allocations: 1.308 MB / 440.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/0.3881, allocations: 5.625 kB / 440.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.3881, allocations: 7.156 kB / 440.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01189/0.4, allocations: 1.154 MB / 441.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005114/0.4005, allocations: 65.42 kB / 441.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.4121, allocations: 5.342 MB / 447.1 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007031/0.4128, allocations: 41.11 kB / 447.2 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.295e-05/0.4129, allocations: 20.33 kB / 447.2 MB, free: 272 kB / 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.0002024/0.4131, allocations: 146.2 kB / 447.3 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.404e-05/0.4132, allocations: 29.16 kB / 447.3 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.616e-05/0.4132, allocations: 27.59 kB / 447.4 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.4132, allocations: 3.672 kB / 447.4 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.4132, allocations: 4 kB / 447.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.4132, allocations: 1.906 kB / 447.4 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.4149, allocations: 0.7537 MB / 448.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4149, allocations: 0 / 448.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003992/0.4153, allocations: 47.08 kB / 448.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.4153, allocations: 2.875 kB / 448.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.4154, allocations: 18 kB / 448.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.4154, allocations: 0.875 kB / 448.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.4154, allocations: 1.438 kB / 448.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.4164, allocations: 0.5141 MB / 448.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.4165, allocations: 107.9 kB / 448.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.166e-05/0.4166, allocations: 9.875 kB / 448.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004326/0.417, allocations: 25.27 kB / 448.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-05/0.4171, allocations: 18.84 kB / 448.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.4171, allocations: 8.328 kB / 448.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002854/0.4174, allocations: 223.6 kB / 449.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4174, allocations: 4 kB / 449.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006853/0.4181, allocations: 98.12 kB / 449.2 MB, free: 14.97 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.0001568/0.4182, allocations: 106.2 kB / 449.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002305/0.4205, allocations: 0.7279 MB / 450 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.4205, allocations: 0 / 450 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.4208, allocations: 96.14 kB / 450.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.4215, allocations: 80.28 kB / 450.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.423, allocations: 0.5947 MB / 450.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.4235, allocations: 0.7782 MB / 451.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.4236, allocations: 34.27 kB / 451.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.4237, allocations: 28 kB / 451.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4237, allocations: 1.344 kB / 451.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of Templates: time 0.01811/0.4419, allocations: 8.852 MB / 460.5 MB, free: 9.77 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.406161814928055]