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.0009914/0.0009914, allocations: 81.97 kB / 22.21 MB, free: 2.297 MB / 18.57 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.001116/0.001116, allocations: 164.5 kB / 25.61 MB, free: 8.922 MB / 18.57 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 0.985/0.985, allocations: 177.2 MB / 206.1 MB, free: 4.512 MB / 186.7 MB " [Timeout remaining time 179] 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 1.233e-06/1.233e-06, allocations: 0 / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.496e-05/1.619e-05, allocations: 5.406 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002725/0.002741, allocations: 2.836 MB / 277 MB, free: 1.574 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001406/0.004148, allocations: 0.8749 MB / 277.9 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.004278, allocations: 7.938 kB / 277.9 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.004427, allocations: 55.44 kB / 278 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.004678, allocations: 131.9 kB / 278.1 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002623/0.00494, allocations: 227.5 kB / 278.3 MB, free: 292 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.005324, allocations: 0.545 MB / 278.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.005461, allocations: 71.64 kB / 279 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.005703, allocations: 307.3 kB / 279.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001904/0.005894, allocations: 175.5 kB / 279.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.81e-05/0.005942, allocations: 48 kB / 279.5 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.367e-05/0.005986, allocations: 48 kB / 279.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.119e-05/0.006047, allocations: 99.64 kB / 279.6 MB, free: 15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.805e-05/0.006145, allocations: 151.6 kB / 279.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002866/0.006431, allocations: 334.8 kB / 280.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-06/0.006433, allocations: 0 / 280.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.006433, allocations: 4 kB / 280.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.006438, allocations: 0 / 280.1 MB, free: 14.52 MB / 266.7 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.0009763/0.007414, allocations: 0.7763 MB / 280.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.007447, allocations: 12.03 kB / 280.9 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.027e-05/0.007537, allocations: 64.7 kB / 280.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.007812, allocations: 263.4 kB / 281.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.602e-05/0.007898, allocations: 127.9 kB / 281.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.683e-05/0.007945, allocations: 36.36 kB / 281.4 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.008206, allocations: 317.1 kB / 281.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.008222, allocations: 4.172 kB / 281.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.008243, allocations: 16.12 kB / 281.7 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.00825, allocations: 4 kB / 281.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.435e-05/0.008344, allocations: 78.62 kB / 281.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.009906, allocations: 1.522 MB / 283.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.01001, allocations: 90.09 kB / 283.4 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.037e-05/0.01004, allocations: 31.38 kB / 283.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.01005, allocations: 4 kB / 283.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.01008, allocations: 37.52 kB / 283.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.01008, allocations: 4 kB / 283.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001269/0.01135, allocations: 0.5754 MB / 284 MB, free: 10.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.01139, allocations: 114.8 kB / 284.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.0116, allocations: 350 kB / 284.5 MB, free: 9.766 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.01162, allocations: 25.7 kB / 284.5 MB, free: 9.734 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.01175, allocations: 263.1 kB / 284.8 MB, free: 9.473 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.01178, allocations: 47.58 kB / 284.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.0119, allocations: 79.28 kB / 284.9 MB, free: 9.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.01204, allocations: 0.5156 MB / 285.4 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.38e-05/0.01214, allocations: 63.73 kB / 285.5 MB, free: 8.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.01229, allocations: 202.1 kB / 285.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.01251, allocations: 235.6 kB / 285.9 MB, free: 8.215 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01251, allocations: 4 kB / 285.9 MB, free: 8.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004182/0.0167, allocations: 1.109 MB / 287 MB, free: 7.086 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.01671, allocations: 8.062 kB / 287 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.01672, allocations: 4 kB / 287 MB, free: 7.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008054/0.02477, allocations: 2.098 MB / 289.1 MB, free: 4.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.02496, allocations: 63.89 kB / 289.2 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005306/0.03027, allocations: 4.835 MB / 294 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.03052, allocations: 27.98 kB / 294 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.03055, allocations: 19.97 kB / 294.1 MB, free: 15.79 MB / 282.7 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 (integrator1.local_reset,integrator2.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.0001183/0.03066, allocations: 176.5 kB / 294.2 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.786e-05/0.03072, allocations: 31.86 kB / 294.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.03075, allocations: 33.94 kB / 294.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.03075, allocations: 3.938 kB / 294.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.03075, allocations: 0 / 294.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.03075, allocations: 0 / 294.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004916/0.03125, allocations: 0.5634 MB / 294.9 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.03125, allocations: 4 kB / 294.9 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.03142, allocations: 43.95 kB / 294.9 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.03142, allocations: 0 / 294.9 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.03144, allocations: 11.92 kB / 294.9 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.03144, allocations: 3.938 kB / 294.9 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.03144, allocations: 4.062 kB / 294.9 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002915/0.03173, allocations: 418.8 kB / 295.3 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.109e-05/0.03176, allocations: 31.8 kB / 295.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.615e-05/0.03179, allocations: 3.938 kB / 295.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.03196, allocations: 28.02 kB / 295.4 MB, free: 14.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.032, allocations: 11.97 kB / 295.4 MB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.03202, allocations: 7.984 kB / 295.4 MB, free: 14.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001093/0.03212, allocations: 230.9 kB / 295.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03212, allocations: 0 / 295.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003598/0.03248, allocations: 99.94 kB / 295.7 MB, free: 14.04 MB / 282.7 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 8.605e-05/0.03257, allocations: 95.25 kB / 295.8 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009105/0.03348, allocations: 0.7091 MB / 296.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.03348, allocations: 3.984 kB / 296.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.716e-05/0.03355, allocations: 39.66 kB / 296.6 MB, free: 13.15 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.03389, allocations: 83.31 kB / 296.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008611/0.03475, allocations: 0.5957 MB / 297.3 MB, free: 12.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.548e-05/0.0348, allocations: 92.61 kB / 297.4 MB, free: 12.33 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.03491, allocations: 43.25 kB / 297.4 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000169/0.03508, allocations: 134.1 kB / 297.5 MB, free: 12.16 MB / 282.7 MB Notification: Performance of SimCode: time 7.52e-07/0.03508, allocations: 0 / 297.5 MB, free: 12.16 MB / 282.7 MB Notification: Performance of Templates: time 0.01114/0.04622, allocations: 11.03 MB / 308.6 MB, free: 1.223 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.072350202128291]