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.001866/0.001866, allocations: 99.55 kB / 20.96 MB, free: 3.453 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.001917/0.001917, allocations: 160.8 kB / 24.27 MB, free: 156 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.572/1.572, allocations: 177 MB / 204.5 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 178] 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.183e-06/1.183e-06, allocations: 0 / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.205e-05/2.324e-05, allocations: 2.312 kB / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004839/0.004862, allocations: 2.836 MB / 275.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.00684, allocations: 0.8766 MB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.006992, allocations: 7.938 kB / 275.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.007192, allocations: 59.38 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000349/0.007541, allocations: 131 kB / 276.1 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004179/0.007959, allocations: 227.5 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006838/0.008643, allocations: 0.5528 MB / 276.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001983/0.008841, allocations: 71.64 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003865/0.009228, allocations: 295.4 kB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003268/0.009555, allocations: 175.5 kB / 277.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.942e-05/0.009644, allocations: 44 kB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.734e-05/0.009731, allocations: 52 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.009855, allocations: 107.6 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.01004, allocations: 147.6 kB / 277.8 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00067/0.01071, allocations: 0.5256 MB / 278.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.01072, allocations: 0 / 278.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.01072, allocations: 0 / 278.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.01072, allocations: 0 / 278.3 MB, free: 11.69 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.00195/0.01267, allocations: 0.7956 MB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.01271, allocations: 11.98 kB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.01284, allocations: 60.7 kB / 279.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.01333, allocations: 279.4 kB / 279.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.01349, allocations: 131.9 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.225e-05/0.01358, allocations: 36.38 kB / 279.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005912/0.01417, allocations: 380.4 kB / 280 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.01418, allocations: 192 / 280 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.01422, allocations: 20.12 kB / 280 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.01423, allocations: 7.938 kB / 280 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003686/0.01459, allocations: 157.3 kB / 280.2 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003309/0.0179, allocations: 1.647 MB / 281.8 MB, free: 7.969 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.01815, allocations: 118.2 kB / 281.9 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.01827, allocations: 51.48 kB / 282 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.01829, allocations: 0 / 282 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.01833, allocations: 37.39 kB / 282 MB, free: 7.723 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.61e-07/0.01833, allocations: 0 / 282 MB, free: 7.723 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.003523/0.02186, allocations: 0.8986 MB / 282.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.59e-05/0.02194, allocations: 106.8 kB / 283 MB, free: 6.625 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000526/0.02247, allocations: 426.2 kB / 283.4 MB, free: 6.191 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.02251, allocations: 29.7 kB / 283.5 MB, free: 6.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002384/0.02275, allocations: 271.1 kB / 283.7 MB, free: 5.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.034e-05/0.02281, allocations: 51.59 kB / 283.8 MB, free: 5.836 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.023, allocations: 91.17 kB / 283.9 MB, free: 5.738 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003177/0.02332, allocations: 0.5352 MB / 284.4 MB, free: 5.191 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.0237, allocations: 147.9 kB / 284.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/0.0242, allocations: 319 kB / 284.8 MB, free: 4.676 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007362/0.02494, allocations: 383.9 kB / 285.2 MB, free: 4.254 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.02494, allocations: 4 kB / 285.2 MB, free: 4.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01043/0.03538, allocations: 1.347 MB / 286.6 MB, free: 2.887 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.03541, allocations: 4 kB / 286.6 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.03543, allocations: 4 kB / 286.6 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02019/0.05561, allocations: 2.138 MB / 288.7 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/0.05611, allocations: 71.88 kB / 288.8 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/0.06981, allocations: 6.09 MB / 294.9 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.07043, allocations: 31.98 kB / 294.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/0.07048, allocations: 19.97 kB / 294.9 MB, free: 10.28 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.0002713/0.07075, allocations: 196.5 kB / 295.1 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.07086, allocations: 35.75 kB / 295.2 MB, free: 10.04 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.548e-05/0.07091, allocations: 25.95 kB / 295.2 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.07092, allocations: 7.938 kB / 295.2 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.07092, allocations: 0 / 295.2 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.07092, allocations: 0 / 295.2 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.07223, allocations: 0.77 MB / 296 MB, free: 9.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.07223, allocations: 0 / 296 MB, free: 9.191 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003852/0.07262, allocations: 47.88 kB / 296 MB, free: 9.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.07262, allocations: 4 kB / 296 MB, free: 9.141 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.07265, allocations: 7.984 kB / 296 MB, free: 9.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.07265, allocations: 0 / 296 MB, free: 9.133 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.07266, allocations: 4 kB / 296 MB, free: 9.129 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009942/0.07365, allocations: 0.5925 MB / 296.6 MB, free: 8.516 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-05/0.07372, allocations: 31.8 kB / 296.6 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.904e-05/0.07377, allocations: 4 kB / 296.7 MB, free: 8.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006454/0.07441, allocations: 19.98 kB / 296.7 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.07449, allocations: 15.91 kB / 296.7 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.07452, allocations: 11.98 kB / 296.7 MB, free: 8.434 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003224/0.07484, allocations: 279 kB / 297 MB, free: 8.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07484, allocations: 0 / 297 MB, free: 8.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005987/0.07544, allocations: 96 kB / 297.1 MB, free: 8.066 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.0001572/0.0756, allocations: 107.3 kB / 297.2 MB, free: 7.953 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002425/0.07802, allocations: 0.8654 MB / 298 MB, free: 7.051 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.07803, allocations: 0 / 298 MB, free: 7.051 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002659/0.07829, allocations: 107.5 kB / 298.1 MB, free: 6.941 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006429/0.07893, allocations: 72.55 kB / 298.2 MB, free: 6.871 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.08043, allocations: 0.5914 MB / 298.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.08063, allocations: 173.1 kB / 299 MB, free: 6.062 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001837/0.08082, allocations: 34.97 kB / 299 MB, free: 6.027 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.08094, allocations: 32.47 kB / 299 MB, free: 5.996 MB / 282.7 MB Notification: Performance of SimCode: time 9.02e-07/0.08094, allocations: 0 / 299 MB, free: 5.996 MB / 282.7 MB Notification: Performance of Templates: time 0.1269/0.2078, allocations: 10.33 MB / 309.4 MB, free: 40.5 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.343449402949773]