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.001817/0.001817, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002245/0.002245, allocations: 209.2 kB / 24.47 MB, free: 3.977 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.987/1.987, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.001583/0.001583, allocations: 43.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3716, allocations: 53.37 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005635/0.3772, allocations: 2.707 MB / 435 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.3796, allocations: 0.865 MB / 435.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002544/0.3798, allocations: 7.938 kB / 435.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.3801, allocations: 59.38 kB / 436 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004726/0.3806, allocations: 123.1 kB / 436.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.3812, allocations: 227.7 kB / 436.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008101/0.382, allocations: 0.5334 MB / 436.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002899/0.3823, allocations: 75.58 kB / 436.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003833/0.3826, allocations: 207.4 kB / 437.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004338/0.3831, allocations: 223.1 kB / 437.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.275e-05/0.3832, allocations: 48 kB / 437.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.3833, allocations: 55.94 kB / 437.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.3834, allocations: 95.66 kB / 437.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.3837, allocations: 171.3 kB / 437.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008809/0.3845, allocations: 0.497 MB / 438.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.3845, allocations: 0 / 438.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.3845, allocations: 0 / 438.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.3846, allocations: 0 / 438.2 MB, free: 0.8516 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.00227/0.3868, allocations: 0.6765 MB / 438.9 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/0.3869, allocations: 12.02 kB / 438.9 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.387, allocations: 40.7 kB / 438.9 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007981/0.3878, allocations: 273.3 kB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.388, allocations: 135.8 kB / 439.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.679e-05/0.3881, allocations: 32.36 kB / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006975/0.3888, allocations: 364.2 kB / 439.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.3889, allocations: 7.953 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.3889, allocations: 8 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3889, allocations: 4 kB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.3893, allocations: 165.3 kB / 439.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.3928, allocations: 1.29 MB / 441.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.3931, allocations: 101.2 kB / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.3932, allocations: 49.77 kB / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.067e-05/0.3933, allocations: 8 kB / 441.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.3933, allocations: 34.55 kB / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 3.988e-06/0.3933, allocations: 0 / 441.4 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.00398/0.3973, allocations: 0.9181 MB / 442.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.3974, allocations: 106.8 kB / 442.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005249/0.3979, allocations: 324.3 kB / 442.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/0.398, allocations: 29.7 kB / 442.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002567/0.3983, allocations: 220.3 kB / 443 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.447e-05/0.3983, allocations: 47.64 kB / 443 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.3985, allocations: 73.61 kB / 443.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002761/0.3988, allocations: 342.8 kB / 443.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.3992, allocations: 151.9 kB / 443.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005133/0.3997, allocations: 276.6 kB / 443.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007536/0.4005, allocations: 354.1 kB / 444.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.4005, allocations: 0 / 444.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01143/0.4119, allocations: 1.31 MB / 445.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.4119, allocations: 4 kB / 445.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.412, allocations: 4 kB / 445.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01312/0.4251, allocations: 1.161 MB / 446.7 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005836/0.4257, allocations: 71.88 kB / 446.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/0.4397, allocations: 4.981 MB / 451.7 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008077/0.4405, allocations: 31.97 kB / 451.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.404e-05/0.4406, allocations: 19.98 kB / 451.8 MB, free: 2.648 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.0003216/0.4409, allocations: 149.7 kB / 451.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.994e-05/0.441, allocations: 31.81 kB / 451.9 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.817e-05/0.441, allocations: 25.89 kB / 452 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.441, allocations: 192 / 452 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.441, allocations: 7.938 kB / 452 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.441, allocations: 3.984 kB / 452 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.4423, allocations: 0.6339 MB / 452.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4423, allocations: 0 / 452.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004369/0.4428, allocations: 51.94 kB / 452.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.4428, allocations: 3.938 kB / 452.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.4428, allocations: 11.98 kB / 452.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4428, allocations: 0 / 452.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4428, allocations: 160 / 452.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.4438, allocations: 0.5208 MB / 453.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.643e-05/0.4439, allocations: 43.88 kB / 453.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.843e-05/0.444, allocations: 0 / 453.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/0.4444, allocations: 27.97 kB / 453.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.4445, allocations: 15.97 kB / 453.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/0.4445, allocations: 11.92 kB / 453.3 MB, free: 1.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002979/0.4448, allocations: 219.1 kB / 453.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4448, allocations: 0 / 453.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007808/0.4456, allocations: 100 kB / 453.6 MB, free: 0.7422 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.0002112/0.4458, allocations: 107.2 kB / 453.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.4485, allocations: 0.7237 MB / 454.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.4485, allocations: 0 / 454.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002803/0.4488, allocations: 91.88 kB / 454.5 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.0007045/0.4495, allocations: 72.67 kB / 454.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.4514, allocations: 0.6027 MB / 455.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.4517, allocations: 177 kB / 455.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001985/0.4519, allocations: 22.98 kB / 455.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.452, allocations: 35.41 kB / 455.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.845e-06/0.452, allocations: 0 / 455.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Templates: time 0.02122/0.4732, allocations: 10.3 MB / 465.7 MB, free: 4.629 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 cvode -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: 6.382291852001799]