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.000951/0.000951, allocations: 91.67 kB / 21.2 MB, free: 3.367 MB / 18.57 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.001818/0.001818, allocations: 160.5 kB / 24.56 MB, free: 12 kB / 18.57 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.036/1.036, allocations: 177 MB / 204.8 MB, free: 5.559 MB / 186.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.452e-06/1.452e-06, allocations: 0 / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.226e-05/2.371e-05, allocations: 2.312 kB / 272.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003028/0.003051, allocations: 2.889 MB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.004347, allocations: 0.8766 MB / 276.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.0045, allocations: 11.94 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.004656, allocations: 51.45 kB / 276.7 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.00494, allocations: 127.1 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.005256, allocations: 231.5 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004417/0.005698, allocations: 0.5527 MB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.005871, allocations: 68.2 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002886/0.006159, allocations: 311.3 kB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.006386, allocations: 171.5 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.461e-05/0.006441, allocations: 44 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.952e-05/0.00649, allocations: 48 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.872e-05/0.006559, allocations: 107.6 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.006671, allocations: 143.6 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.007047, allocations: 338.8 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.00705, allocations: 4 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.007051, allocations: 0 / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.007057, allocations: 0 / 278.9 MB, free: 11.45 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.0012/0.008257, allocations: 0.7725 MB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.0083, allocations: 11.98 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.008411, allocations: 60.7 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.008781, allocations: 283.4 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/0.008952, allocations: 127.9 kB / 280.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-05/0.009009, allocations: 40.27 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000333/0.009342, allocations: 333.2 kB / 280.5 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.009356, allocations: 4.125 kB / 280.5 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.009379, allocations: 16.12 kB / 280.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.009389, allocations: 4 kB / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.009533, allocations: 81.28 kB / 280.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.01136, allocations: 1.569 MB / 282.1 MB, free: 7.945 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001236/0.01148, allocations: 86.03 kB / 282.2 MB, free: 7.836 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.397e-05/0.01153, allocations: 27.62 kB / 282.3 MB, free: 7.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.01155, allocations: 4 kB / 282.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.01157, allocations: 49.38 kB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 2.033e-06/0.01158, allocations: 0 / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001545/0.01312, allocations: 0.6612 MB / 283 MB, free: 7.008 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.01317, allocations: 102.8 kB / 283.1 MB, free: 6.883 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.01342, allocations: 354.2 kB / 283.4 MB, free: 6.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.01345, allocations: 33.7 kB / 283.4 MB, free: 6.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.01357, allocations: 263.1 kB / 283.7 MB, free: 6.219 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.441e-05/0.01361, allocations: 51.58 kB / 283.8 MB, free: 6.168 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.01371, allocations: 83.27 kB / 283.8 MB, free: 6.078 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.01384, allocations: 0.5117 MB / 284.3 MB, free: 5.555 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.01398, allocations: 67.95 kB / 284.4 MB, free: 5.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.01419, allocations: 227 kB / 284.6 MB, free: 5.207 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.01449, allocations: 259.9 kB / 284.9 MB, free: 4.902 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.01449, allocations: 128 / 284.9 MB, free: 4.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004216/0.01871, allocations: 1.156 MB / 286 MB, free: 3.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.01873, allocations: 10.66 kB / 286.1 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.01874, allocations: 0 / 286.1 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008242/0.02698, allocations: 2.11 MB / 288.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002582/0.02724, allocations: 63.88 kB / 288.2 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006213/0.03345, allocations: 4.89 MB / 293.1 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.03378, allocations: 35.97 kB / 293.2 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.0338, allocations: 11.98 kB / 293.2 MB, free: 12.36 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 (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.0001482/0.03395, allocations: 176.5 kB / 293.3 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.03401, allocations: 35.75 kB / 293.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.765e-05/0.03404, allocations: 29.95 kB / 293.4 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.03404, allocations: 4 kB / 293.4 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.03404, allocations: 0 / 293.4 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.03405, allocations: 3.984 kB / 293.4 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006495/0.0347, allocations: 0.6214 MB / 294 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.0347, allocations: 0 / 294 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.03488, allocations: 47.89 kB / 294.1 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.03489, allocations: 4 kB / 294.1 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.03491, allocations: 7.984 kB / 294.1 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.03491, allocations: 3.984 kB / 294.1 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.03492, allocations: 0 / 294.1 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004468/0.03536, allocations: 426.8 kB / 294.5 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.0354, allocations: 27.8 kB / 294.5 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.03543, allocations: 4 kB / 294.5 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.03561, allocations: 27.92 kB / 294.6 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.03566, allocations: 15.95 kB / 294.6 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.03568, allocations: 12.02 kB / 294.6 MB, free: 10.85 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001518/0.03583, allocations: 235 kB / 294.8 MB, free: 10.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03583, allocations: 4 kB / 294.8 MB, free: 10.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004192/0.03625, allocations: 96 kB / 294.9 MB, free: 10.52 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 0.0001083/0.03636, allocations: 99.25 kB / 295 MB, free: 10.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.03751, allocations: 0.7324 MB / 295.8 MB, free: 9.648 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.03752, allocations: 0 / 295.8 MB, free: 9.648 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.368e-05/0.03761, allocations: 51.58 kB / 295.8 MB, free: 9.594 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.03801, allocations: 79.47 kB / 295.9 MB, free: 9.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.03912, allocations: 0.5876 MB / 296.5 MB, free: 8.895 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.538e-05/0.03919, allocations: 96.61 kB / 296.6 MB, free: 8.781 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001149/0.03931, allocations: 34.97 kB / 296.6 MB, free: 8.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.27e-05/0.03939, allocations: 28.47 kB / 296.6 MB, free: 8.723 MB / 282.7 MB Notification: Performance of SimCode: time 1.443e-06/0.03939, allocations: 7.938 kB / 296.6 MB, free: 8.715 MB / 282.7 MB Notification: Performance of Templates: time 0.1038/0.1432, allocations: 10.32 MB / 306.9 MB, free: 40.06 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3193213338963687]