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.001286/0.001286, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.001395/0.001395, allocations: 214.8 kB / 24.48 MB, free: 3.93 MB / 14.72 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.592/1.592, allocations: 230.5 MB / 258.1 MB, free: 7.766 MB / 206.1 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 0.001907/0.001907, allocations: 71.84 kB / 379 MB, free: 2.281 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.259, allocations: 53.41 MB / 432.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.00453/0.2635, allocations: 2.696 MB / 435.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.2654, allocations: 0.8689 MB / 436 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.2656, allocations: 4 kB / 436 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.2658, allocations: 55.38 kB / 436 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003714/0.2661, allocations: 131.2 kB / 436.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000411/0.2666, allocations: 223.6 kB / 436.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005882/0.2671, allocations: 0.5296 MB / 436.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.2673, allocations: 75.58 kB / 437 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002422/0.2676, allocations: 207.3 kB / 437.2 MB, free: 1.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003104/0.2679, allocations: 199.1 kB / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.405e-05/0.268, allocations: 44 kB / 437.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.03e-05/0.268, allocations: 55.94 kB / 437.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.2681, allocations: 103.7 kB / 437.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.2683, allocations: 171.2 kB / 437.7 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005547/0.2689, allocations: 0.4892 MB / 438.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2689, allocations: 0 / 438.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2689, allocations: 0 / 438.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2689, allocations: 0 / 438.2 MB, free: 0.6719 MB / 334.1 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.001709/0.2706, allocations: 0.6804 MB / 438.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2706, allocations: 19.98 kB / 438.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.864e-05/0.2707, allocations: 40.7 kB / 439 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.2713, allocations: 273.2 kB / 439.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.2714, allocations: 135.9 kB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.156e-05/0.2715, allocations: 24.38 kB / 439.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.272, allocations: 360.2 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.2721, allocations: 11.83 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.2721, allocations: 16 kB / 439.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.2721, allocations: 8 kB / 439.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.2725, allocations: 161.2 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002852/0.2753, allocations: 1.29 MB / 441.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002257/0.2756, allocations: 97.19 kB / 441.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.2757, allocations: 53.81 kB / 441.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.2757, allocations: 0 / 441.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.2757, allocations: 34.56 kB / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.253e-06/0.2757, allocations: 0 / 441.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003208/0.2789, allocations: 0.9327 MB / 442.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.537e-05/0.279, allocations: 102.8 kB / 442.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/0.2794, allocations: 328.3 kB / 442.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/0.2795, allocations: 29.7 kB / 442.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.2796, allocations: 212.4 kB / 443 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.621e-05/0.2797, allocations: 47.62 kB / 443 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.2799, allocations: 81.59 kB / 443.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.28, allocations: 334.8 kB / 443.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/0.2804, allocations: 155.9 kB / 443.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.2808, allocations: 273.5 kB / 443.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007074/0.2816, allocations: 358.1 kB / 444.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.2816, allocations: 0 / 444.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009462/0.291, allocations: 1.313 MB / 445.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.2911, allocations: 8 kB / 445.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.2911, allocations: 0 / 445.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01099/0.3021, allocations: 1.149 MB / 446.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/0.3025, allocations: 71.86 kB / 446.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/0.314, allocations: 4.978 MB / 451.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006737/0.3147, allocations: 39.97 kB / 451.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.857e-05/0.3147, allocations: 15.97 kB / 451.8 MB, free: 2.457 MB / 350.1 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.0002647/0.315, allocations: 149.7 kB / 451.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.674e-05/0.3151, allocations: 27.81 kB / 452 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.892e-05/0.3151, allocations: 33.89 kB / 452 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3151, allocations: 0 / 452 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.3151, allocations: 4 kB / 452 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3151, allocations: 0 / 452 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.3162, allocations: 0.6299 MB / 452.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3162, allocations: 0 / 452.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00036/0.3166, allocations: 59.88 kB / 452.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.3166, allocations: 4 kB / 452.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.3166, allocations: 3.984 kB / 452.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.572e-06/0.3166, allocations: 0 / 452.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3166, allocations: 0 / 452.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008886/0.3175, allocations: 0.5219 MB / 453.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.3176, allocations: 23.91 kB / 453.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.698e-05/0.3176, allocations: 15.98 kB / 453.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/0.318, allocations: 24.05 kB / 453.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.177e-05/0.3181, allocations: 19.91 kB / 453.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.3181, allocations: 11.92 kB / 453.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002618/0.3184, allocations: 223.1 kB / 453.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3184, allocations: 0 / 453.5 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005274/0.3189, allocations: 96 kB / 453.6 MB, free: 0.5586 MB / 350.1 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.0001511/0.3191, allocations: 103.2 kB / 453.7 MB, free: 460 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002042/0.3211, allocations: 0.7354 MB / 454.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3211, allocations: 4 kB / 454.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002673/0.3214, allocations: 92.03 kB / 454.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005798/0.3219, allocations: 78.27 kB / 454.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.3233, allocations: 0.6297 MB / 455.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.3235, allocations: 184.9 kB / 455.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.3236, allocations: 35.39 kB / 455.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3236, allocations: 0 / 455.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of Templates: time 0.0104/0.334, allocations: 6.877 MB / 462.4 MB, free: 7.758 MB / 366.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/DemonstrateLightning/DemonstrateLightning.csv","/var/lib/jenkins1/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: 7.861390517093241]