Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001244/0.001244, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002114/0.003358, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009514/0.0009514, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001006/0.001958, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.146/1.146, allocations: 177.5 MB / 190 MB, free: 4.773 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09201/1.238, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.905e-05/2.03e-05, allocations: 2.312 kB / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003147/0.003168, allocations: 2.908 MB / 248.1 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001618/0.004786, allocations: 0.9075 MB / 249.1 MB, free: 9.676 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.004926, allocations: 7.938 kB / 249.1 MB, free: 9.668 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.00504, allocations: 55.39 kB / 249.1 MB, free: 9.613 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.005273, allocations: 131 kB / 249.2 MB, free: 9.484 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.005602, allocations: 231.5 kB / 249.5 MB, free: 9.258 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004618/0.006064, allocations: 0.5448 MB / 250 MB, free: 8.711 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.006217, allocations: 78.27 kB / 250.1 MB, free: 8.637 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003524/0.006569, allocations: 341.3 kB / 250.4 MB, free: 8.301 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.006789, allocations: 179.5 kB / 250.6 MB, free: 8.125 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.63e-05/0.006846, allocations: 48 kB / 250.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.023e-05/0.006896, allocations: 44 kB / 250.7 MB, free: 8.035 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.432e-05/0.00695, allocations: 79.73 kB / 250.8 MB, free: 7.957 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.729e-05/0.007038, allocations: 111.8 kB / 250.9 MB, free: 7.848 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.007336, allocations: 302.9 kB / 251.2 MB, free: 7.551 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.14e-05/0.007348, allocations: 0 / 251.2 MB, free: 7.551 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.007348, allocations: 0 / 251.2 MB, free: 7.551 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.007361, allocations: 0 / 251.2 MB, free: 7.551 MB / 250.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.0009984/0.008359, allocations: 0.7216 MB / 251.9 MB, free: 6.805 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.008393, allocations: 8.625 kB / 251.9 MB, free: 6.797 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.343e-05/0.008466, allocations: 48.89 kB / 251.9 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.008743, allocations: 224.6 kB / 252.2 MB, free: 6.504 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.008e-05/0.008833, allocations: 131.9 kB / 252.3 MB, free: 6.352 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.499e-05/0.008878, allocations: 28.38 kB / 252.3 MB, free: 6.324 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002595/0.009138, allocations: 309.3 kB / 252.6 MB, free: 5.969 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.00915, allocations: 192 / 252.6 MB, free: 5.969 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.009169, allocations: 16.12 kB / 252.6 MB, free: 5.953 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.009176, allocations: 4 kB / 252.6 MB, free: 5.949 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.462e-05/0.009261, allocations: 69.23 kB / 252.7 MB, free: 5.883 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.01057, allocations: 1.1 MB / 253.8 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.01067, allocations: 69.06 kB / 253.9 MB, free: 4.656 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.885e-05/0.0107, allocations: 25.89 kB / 253.9 MB, free: 4.625 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.01072, allocations: 12 kB / 253.9 MB, free: 4.613 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.01074, allocations: 38.5 kB / 254 MB, free: 4.566 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.834e-06/0.01074, allocations: 0 / 254 MB, free: 4.566 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.001498/0.01224, allocations: 0.6134 MB / 254.6 MB, free: 3.891 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.01228, allocations: 89.03 kB / 254.7 MB, free: 3.785 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.01249, allocations: 278.9 kB / 254.9 MB, free: 3.5 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.01252, allocations: 29.7 kB / 255 MB, free: 3.465 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.01263, allocations: 196.8 kB / 255.1 MB, free: 3.266 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.539e-05/0.01266, allocations: 43.62 kB / 255.2 MB, free: 3.223 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.868e-05/0.01276, allocations: 77.58 kB / 255.3 MB, free: 3.141 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.01287, allocations: 342.8 kB / 255.6 MB, free: 2.797 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000369/0.01324, allocations: 43.95 kB / 255.6 MB, free: 2.754 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.01339, allocations: 169.5 kB / 255.8 MB, free: 2.543 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002074/0.01359, allocations: 209.9 kB / 256 MB, free: 2.301 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.01359, allocations: 0 / 256 MB, free: 2.301 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003424/0.01702, allocations: 1.041 MB / 257.1 MB, free: 1.246 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.01704, allocations: 4 kB / 257.1 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.01705, allocations: 7.984 kB / 257.1 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007142/0.02419, allocations: 2.094 MB / 259.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.02444, allocations: 75.84 kB / 259.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005166/0.02961, allocations: 3.677 MB / 262.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002993/0.02991, allocations: 27.98 kB / 262.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.02993, allocations: 11.97 kB / 263 MB, free: 11.17 MB / 266.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.0001442/0.03007, allocations: 129.7 kB / 263.1 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.189e-05/0.03012, allocations: 19.98 kB / 263.1 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.886e-05/0.03015, allocations: 25.95 kB / 263.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.03016, allocations: 4 kB / 263.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.03016, allocations: 0 / 263.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.03017, allocations: 11.92 kB / 263.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004811/0.03065, allocations: 402 kB / 263.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.03065, allocations: 0 / 263.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.03083, allocations: 59.91 kB / 263.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.445e-05/0.03087, allocations: 19.81 kB / 263.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.03087, allocations: 4 kB / 263.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.03089, allocations: 7.922 kB / 263.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.03089, allocations: 4 kB / 263.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.03089, allocations: 0 / 263.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.03114, allocations: 294.6 kB / 263.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.607e-05/0.03117, allocations: 4 kB / 263.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.03132, allocations: 23.92 kB / 263.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.03137, allocations: 15.95 kB / 264 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.03138, allocations: 11.98 kB / 264 MB, free: 10.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.347e-05/0.03147, allocations: 104.6 kB / 264.1 MB, free: 10 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.03147, allocations: 4.031 kB / 264.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003511/0.03182, allocations: 96 kB / 264.2 MB, free: 9.902 MB / 266.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 0.0001228/0.03195, allocations: 88.34 kB / 264.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008671/0.03281, allocations: 0.5903 MB / 264.8 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.03282, allocations: 4 kB / 264.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.272e-05/0.0329, allocations: 48.64 kB / 264.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.03336, allocations: 496.7 kB / 265.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.03513, allocations: 0.5925 MB / 266 MB, free: 7.949 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.157e-05/0.0352, allocations: 96.47 kB / 266.1 MB, free: 7.836 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.03532, allocations: 34.95 kB / 266.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001798/0.0355, allocations: 111.3 kB / 266.2 MB, free: 7.691 MB / 266.7 MB Notification: Performance of SimCode: time 1.442e-06/0.0355, allocations: 4 kB / 266.2 MB, free: 7.688 MB / 266.7 MB Notification: Performance of Templates: time 0.01193/0.04743, allocations: 9.516 MB / 275.7 MB, free: 14.24 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.91970956325531]