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.0007749/0.0007749, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001094/0.001869, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007089/0.0007089, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000968/0.001677, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9907/0.9907, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1215/1.112, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.583e-06/1.583e-06, allocations: 0 / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.357e-05, allocations: 5.125 kB / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002929/0.002952, allocations: 2.912 MB / 247.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.00425, allocations: 0.8997 MB / 248.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.00442, allocations: 7.938 kB / 248.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.004525, allocations: 47.45 kB / 248.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002257/0.004751, allocations: 139 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.005078, allocations: 231.5 kB / 248.8 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004418/0.00552, allocations: 0.5411 MB / 249.3 MB, free: 9.496 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.005659, allocations: 78.27 kB / 249.4 MB, free: 9.418 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003249/0.005984, allocations: 345.2 kB / 249.7 MB, free: 9.078 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.00619, allocations: 175.5 kB / 249.9 MB, free: 8.906 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.124e-05/0.006241, allocations: 52 kB / 250 MB, free: 8.855 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.006286, allocations: 48 kB / 250 MB, free: 8.809 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.771e-05/0.006334, allocations: 71.75 kB / 250.1 MB, free: 8.738 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.571e-05/0.00643, allocations: 111.8 kB / 250.2 MB, free: 8.629 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002936/0.006723, allocations: 302.9 kB / 250.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.006735, allocations: 0 / 250.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.006736, allocations: 0 / 250.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.006749, allocations: 0 / 250.5 MB, free: 8.332 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.0008979/0.007646, allocations: 0.7255 MB / 251.2 MB, free: 7.582 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.699e-05/0.007673, allocations: 8.031 kB / 251.2 MB, free: 7.574 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.974e-05/0.007733, allocations: 44.91 kB / 251.3 MB, free: 7.531 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.007982, allocations: 224.6 kB / 251.5 MB, free: 7.289 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.074e-05/0.008073, allocations: 127.9 kB / 251.6 MB, free: 7.141 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.875e-05/0.008112, allocations: 28.38 kB / 251.6 MB, free: 7.113 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.008348, allocations: 313.2 kB / 251.9 MB, free: 6.754 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.008357, allocations: 4.188 kB / 251.9 MB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.008372, allocations: 16.12 kB / 252 MB, free: 6.734 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.008378, allocations: 4 kB / 252 MB, free: 6.73 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.81e-05/0.008456, allocations: 61.31 kB / 252 MB, free: 6.672 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.009676, allocations: 1.104 MB / 253.1 MB, free: 5.523 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.811e-05/0.009774, allocations: 73.22 kB / 253.2 MB, free: 5.434 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.569e-05/0.0098, allocations: 21.66 kB / 253.2 MB, free: 5.406 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.009814, allocations: 4 kB / 253.2 MB, free: 5.402 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.00984, allocations: 38.62 kB / 253.3 MB, free: 5.355 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.009841, allocations: 0 / 253.3 MB, free: 5.355 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.001343/0.01118, allocations: 0.6173 MB / 253.9 MB, free: 4.676 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.01121, allocations: 81.05 kB / 253.9 MB, free: 4.578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.01137, allocations: 282.9 kB / 254.2 MB, free: 4.285 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.01139, allocations: 37.7 kB / 254.3 MB, free: 4.242 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.11e-05/0.01147, allocations: 196.8 kB / 254.5 MB, free: 4.043 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.0115, allocations: 47.62 kB / 254.5 MB, free: 3.996 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-05/0.01158, allocations: 81.42 kB / 254.6 MB, free: 3.91 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.818e-05/0.01166, allocations: 338.8 kB / 254.9 MB, free: 3.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.028e-05/0.01173, allocations: 43.97 kB / 255 MB, free: 3.527 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/0.01185, allocations: 158.3 kB / 255.1 MB, free: 3.328 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.01203, allocations: 206 kB / 255.3 MB, free: 3.09 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.01203, allocations: 0 / 255.3 MB, free: 3.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00321/0.01524, allocations: 1.045 MB / 256.4 MB, free: 2.035 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.01526, allocations: 4 kB / 256.4 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.01526, allocations: 4 kB / 256.4 MB, free: 2.027 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006543/0.02181, allocations: 2.093 MB / 258.5 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.02202, allocations: 83.78 kB / 258.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/0.02628, allocations: 3.679 MB / 262.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.0265, allocations: 27.98 kB / 262.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.02652, allocations: 15.97 kB / 262.3 MB, free: 11.95 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.0001167/0.02664, allocations: 133.7 kB / 262.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.817e-05/0.02668, allocations: 15.98 kB / 262.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.02671, allocations: 29.95 kB / 262.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.02671, allocations: 0 / 262.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.02671, allocations: 0 / 262.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.02672, allocations: 7.969 kB / 262.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.02715, allocations: 401.8 kB / 262.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.02715, allocations: 0 / 262.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.02732, allocations: 59.91 kB / 262.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.736e-05/0.02734, allocations: 23.81 kB / 262.9 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.02735, allocations: 4.125 kB / 262.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.02736, allocations: 15.92 kB / 262.9 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.02736, allocations: 3.938 kB / 262.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.02736, allocations: 0 / 262.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000214/0.02758, allocations: 294.4 kB / 263.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.0276, allocations: 4 kB / 263.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.02775, allocations: 23.95 kB / 263.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.02779, allocations: 19.95 kB / 263.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.0278, allocations: 7.984 kB / 263.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.191e-05/0.02789, allocations: 104.6 kB / 263.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02789, allocations: 0 / 263.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003139/0.0282, allocations: 100 kB / 263.5 MB, free: 10.68 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 9.461e-05/0.02829, allocations: 87.97 kB / 263.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007996/0.02909, allocations: 0.59 MB / 264.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/0.0291, allocations: 7.938 kB / 264.2 MB, free: 9.961 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.692e-05/0.02916, allocations: 36.81 kB / 264.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.02946, allocations: 99.62 kB / 264.3 MB, free: 9.828 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.03112, allocations: 0.5906 MB / 264.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.727e-05/0.03117, allocations: 96.47 kB / 265 MB, free: 9.105 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.03128, allocations: 39.19 kB / 265 MB, free: 9.066 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.03144, allocations: 103.3 kB / 265.1 MB, free: 8.965 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.03144, allocations: 7.938 kB / 265.1 MB, free: 8.957 MB / 266.7 MB Notification: Performance of Templates: time 0.01091/0.04235, allocations: 10.8 MB / 275.9 MB, free: 14.25 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 -ignoreHideResult -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: 2.883631576783955]