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.0007105/0.0007105, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004029/0.004029, allocations: 160.6 kB / 24.7 MB, free: 9.441 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.8336/0.8336, allocations: 177 MB / 204.8 MB, free: 5.734 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 8.61e-07/8.61e-07, allocations: 0 / 325.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.569e-05/1.655e-05, allocations: 3.125 kB / 325.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.0025/0.002516, allocations: 2.697 MB / 328.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009446/0.003461, allocations: 0.8728 MB / 329.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.003562, allocations: 7.938 kB / 329.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.033e-05/0.003652, allocations: 51.45 kB / 329.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.003835, allocations: 127.1 kB / 329.5 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002203/0.004055, allocations: 235.5 kB / 329.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003532/0.004409, allocations: 0.545 MB / 330.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.004517, allocations: 75.62 kB / 330.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.004714, allocations: 299.4 kB / 330.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001624/0.004877, allocations: 175.5 kB / 330.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.175e-05/0.004918, allocations: 44 kB / 330.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.555e-05/0.004954, allocations: 48 kB / 331 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.175e-05/0.005006, allocations: 107.6 kB / 331.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.424e-05/0.00509, allocations: 139.7 kB / 331.2 MB, free: 9.914 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.005444, allocations: 0.5295 MB / 331.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.005446, allocations: 0 / 331.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.005447, allocations: 4 kB / 331.7 MB, free: 9.379 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.005452, allocations: 0 / 331.7 MB, free: 9.379 MB / 298.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.0008298/0.006282, allocations: 0.661 MB / 332.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.706e-05/0.006309, allocations: 15.98 kB / 332.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.459e-05/0.006363, allocations: 40.7 kB / 332.4 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.006633, allocations: 276.5 kB / 332.7 MB, free: 8.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.152e-05/0.006715, allocations: 139.9 kB / 332.8 MB, free: 8.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.00675, allocations: 28.38 kB / 332.9 MB, free: 8.152 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.007039, allocations: 360.6 kB / 333.2 MB, free: 7.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.00705, allocations: 4.188 kB / 333.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.007066, allocations: 8.125 kB / 333.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.007072, allocations: 11.94 kB / 333.3 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002088/0.007281, allocations: 165.3 kB / 333.4 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.008653, allocations: 1.291 MB / 334.7 MB, free: 6.211 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.008773, allocations: 101.2 kB / 334.8 MB, free: 6.094 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.048e-05/0.008833, allocations: 45.83 kB / 334.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.008842, allocations: 4 kB / 334.9 MB, free: 6.039 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.00886, allocations: 38.5 kB / 334.9 MB, free: 5.992 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.82e-07/0.008861, allocations: 0 / 334.9 MB, free: 5.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.001571/0.01043, allocations: 0.9211 MB / 335.8 MB, free: 5.008 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.805e-05/0.01047, allocations: 106.8 kB / 335.9 MB, free: 4.879 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.01069, allocations: 324.4 kB / 336.2 MB, free: 4.551 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.01072, allocations: 29.7 kB / 336.3 MB, free: 4.516 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.01082, allocations: 216.4 kB / 336.5 MB, free: 4.297 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.088e-05/0.01086, allocations: 47.59 kB / 336.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.01095, allocations: 77.64 kB / 336.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.937e-05/0.01104, allocations: 338.8 kB / 336.9 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.01125, allocations: 151.9 kB / 337.1 MB, free: 3.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.01151, allocations: 274.2 kB / 337.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.01189, allocations: 349.2 kB / 337.7 MB, free: 2.992 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.0119, allocations: 0 / 337.7 MB, free: 2.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004028/0.01592, allocations: 1.322 MB / 339 MB, free: 1.656 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.01593, allocations: 8 kB / 339 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.01594, allocations: 0 / 339 MB, free: 1.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004529/0.02047, allocations: 1.154 MB / 340.2 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.02066, allocations: 71.86 kB / 340.2 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005724/0.02638, allocations: 4.981 MB / 345.2 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.02661, allocations: 39.97 kB / 345.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.02664, allocations: 19.97 kB / 345.3 MB, free: 11.18 MB / 314.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.0001219/0.02676, allocations: 145.7 kB / 345.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.02681, allocations: 31.75 kB / 345.4 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.347e-05/0.02683, allocations: 29.95 kB / 345.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.02683, allocations: 4 kB / 345.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-06/0.02683, allocations: 0 / 345.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.02684, allocations: 0 / 345.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006517/0.02749, allocations: 0.63 MB / 346.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.02749, allocations: 4.125 kB / 346.1 MB, free: 10.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.02765, allocations: 51.88 kB / 346.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.02766, allocations: 4 kB / 346.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.02767, allocations: 3.984 kB / 346.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.02767, allocations: 0 / 346.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.02767, allocations: 4 kB / 346.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004946/0.02817, allocations: 0.5257 MB / 346.7 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-05/0.0282, allocations: 23.84 kB / 346.7 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.02822, allocations: 7.984 kB / 346.7 MB, free: 9.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.02839, allocations: 24.05 kB / 346.8 MB, free: 9.629 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.02843, allocations: 19.91 kB / 346.8 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.02844, allocations: 7.984 kB / 346.8 MB, free: 9.602 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001446/0.02859, allocations: 223.1 kB / 347 MB, free: 9.387 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02859, allocations: 0 / 347 MB, free: 9.387 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003301/0.02892, allocations: 96 kB / 347.1 MB, free: 9.293 MB / 314.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 8.431e-05/0.029, allocations: 99.25 kB / 347.2 MB, free: 9.188 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.03002, allocations: 0.7315 MB / 347.9 MB, free: 8.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.03002, allocations: 0 / 347.9 MB, free: 8.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.03017, allocations: 100.1 kB / 348 MB, free: 8.332 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.0305, allocations: 71.56 kB / 348.1 MB, free: 8.262 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007441/0.03124, allocations: 0.5997 MB / 348.7 MB, free: 7.629 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.835e-05/0.03134, allocations: 181 kB / 348.9 MB, free: 7.434 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.449e-05/0.03144, allocations: 36.45 kB / 348.9 MB, free: 7.398 MB / 314.7 MB Notification: Performance of SimCode: time 4.71e-07/0.03144, allocations: 0 / 348.9 MB, free: 7.398 MB / 314.7 MB Notification: Performance of Templates: time 0.005348/0.03679, allocations: 6.892 MB / 355.8 MB, free: 0.5156 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] 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] "" Variables in the reference:time,currentSensor1.i,currentSensor2.i,integrator1.y,der1.y,integrator2.y,der2.y Variables in the result:currentSensor1.i,currentSensor2.i,der1.y,der2.y,integrator1.y,integrator2.y,time [Calling sys.exit(0), Time elapsed: 4.6040529645979404]