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.001002/0.001002, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.004582/0.004582, allocations: 156.4 kB / 24.98 MB, free: 8.75 MB / 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 0.9676/0.9676, allocations: 177 MB / 205.2 MB, free: 5.59 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.613e-06/1.613e-06, allocations: 0 / 273 MB, free: 1.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.693e-05, allocations: 5.266 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002829/0.002846, allocations: 2.874 MB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.004073, allocations: 0.8805 MB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.00421, allocations: 4 kB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.004363, allocations: 51.45 kB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.004626, allocations: 131 kB / 277 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.004898, allocations: 223.6 kB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003879/0.005286, allocations: 0.5565 MB / 277.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.00545, allocations: 76.2 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002486/0.005699, allocations: 299.4 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.005892, allocations: 175.5 kB / 278.3 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.227e-05/0.005944, allocations: 48 kB / 278.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.102e-05/0.005985, allocations: 48 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.006047, allocations: 99.62 kB / 278.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.00615, allocations: 147.6 kB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.006465, allocations: 342.7 kB / 278.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.006467, allocations: 4 kB / 278.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.02e-07/0.006467, allocations: 4 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.006473, allocations: 0 / 278.9 MB, free: 11.77 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.0009972/0.00747, allocations: 0.7647 MB / 279.7 MB, free: 10.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.007501, allocations: 15.98 kB / 279.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.169e-05/0.007592, allocations: 64.7 kB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.007895, allocations: 275.4 kB / 280.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.007998, allocations: 135.9 kB / 280.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.444e-05/0.008043, allocations: 32.33 kB / 280.2 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.008367, allocations: 333.1 kB / 280.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.00838, allocations: 4.188 kB / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.0084, allocations: 12.12 kB / 280.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.00841, allocations: 8 kB / 280.6 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.008555, allocations: 85.28 kB / 280.7 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.01016, allocations: 1.565 MB / 282.2 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.01028, allocations: 90.22 kB / 282.3 MB, free: 8.168 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.256e-05/0.01032, allocations: 23.5 kB / 282.3 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.01034, allocations: 4 kB / 282.3 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.01036, allocations: 45.31 kB / 282.4 MB, free: 8.078 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 2.594e-06/0.01036, allocations: 4 kB / 282.4 MB, free: 8.074 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001396/0.01176, allocations: 0.6605 MB / 283 MB, free: 7.344 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.0118, allocations: 106.8 kB / 283.1 MB, free: 7.215 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.01215, allocations: 350.2 kB / 283.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.01218, allocations: 33.7 kB / 283.5 MB, free: 6.816 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.01229, allocations: 263.1 kB / 283.8 MB, free: 6.555 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.01232, allocations: 43.64 kB / 283.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.521e-05/0.01242, allocations: 87.27 kB / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.01253, allocations: 0.5117 MB / 284.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.01267, allocations: 67.95 kB / 284.5 MB, free: 5.828 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.01287, allocations: 230.9 kB / 284.7 MB, free: 5.543 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.01315, allocations: 252.1 kB / 285 MB, free: 5.246 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01315, allocations: 4 kB / 285 MB, free: 5.242 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004243/0.0174, allocations: 1.156 MB / 286.1 MB, free: 4.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.01741, allocations: 4 kB / 286.1 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.01742, allocations: 4 kB / 286.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008002/0.02542, allocations: 2.11 MB / 288.2 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.02562, allocations: 63.88 kB / 288.3 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00639/0.03201, allocations: 4.894 MB / 293.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.03232, allocations: 31.97 kB / 293.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.03235, allocations: 15.98 kB / 293.2 MB, free: 12.69 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.0001382/0.03249, allocations: 172.6 kB / 293.4 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.03255, allocations: 39.75 kB / 293.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.03257, allocations: 29.95 kB / 293.5 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.03258, allocations: 7.938 kB / 293.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.03258, allocations: 0 / 293.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.03258, allocations: 3.984 kB / 293.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006079/0.03319, allocations: 0.6214 MB / 294.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.03319, allocations: 0 / 294.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.03337, allocations: 43.95 kB / 294.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.03337, allocations: 0 / 294.1 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.03339, allocations: 3.984 kB / 294.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.03339, allocations: 7.984 kB / 294.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.0334, allocations: 4 kB / 294.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.03377, allocations: 426.7 kB / 294.6 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.03381, allocations: 31.8 kB / 294.6 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.03384, allocations: 4 kB / 294.6 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.03402, allocations: 19.98 kB / 294.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.03407, allocations: 19.95 kB / 294.7 MB, free: 11.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.03409, allocations: 7.984 kB / 294.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001507/0.03424, allocations: 235 kB / 294.9 MB, free: 10.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03424, allocations: 4.031 kB / 294.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003621/0.0346, allocations: 96 kB / 295 MB, free: 10.86 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.0001008/0.0347, allocations: 103.2 kB / 295.1 MB, free: 10.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001075/0.03577, allocations: 0.7402 MB / 295.8 MB, free: 9.977 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.03578, allocations: 0 / 295.8 MB, free: 9.977 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.85e-05/0.03586, allocations: 47.58 kB / 295.9 MB, free: 9.926 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.03625, allocations: 83.66 kB / 296 MB, free: 9.848 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.03731, allocations: 0.5826 MB / 296.5 MB, free: 9.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.946e-05/0.03738, allocations: 92.61 kB / 296.6 MB, free: 9.121 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.0375, allocations: 30.97 kB / 296.7 MB, free: 9.094 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.153e-05/0.03758, allocations: 32.47 kB / 296.7 MB, free: 9.062 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.03758, allocations: 0 / 296.7 MB, free: 9.062 MB / 282.7 MB Notification: Performance of Templates: time 0.1087/0.1463, allocations: 10.33 MB / 307 MB, free: 42.57 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.252448771847412]