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.001337/0.001337, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001469/0.001469, allocations: 203.7 kB / 23.72 MB, free: 4.391 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.475/1.475, allocations: 230.5 MB / 257.4 MB, free: 7.77 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.002025/0.002025, allocations: 75.83 kB / 378.2 MB, free: 2.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.266, allocations: 53.39 MB / 431.6 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004401/0.2704, allocations: 2.704 MB / 434.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.2719, allocations: 0.865 MB / 435.2 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.2721, allocations: 4 kB / 435.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.2723, allocations: 55.45 kB / 435.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.2726, allocations: 127.1 kB / 435.4 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003596/0.2729, allocations: 227.6 kB / 435.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006312/0.2736, allocations: 0.5296 MB / 436.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.2738, allocations: 75.58 kB / 436.2 MB, free: 1.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/0.274, allocations: 211.2 kB / 436.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003251/0.2743, allocations: 195.2 kB / 436.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.644e-05/0.2744, allocations: 44 kB / 436.7 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.2745, allocations: 48 kB / 436.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.2746, allocations: 107.6 kB / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.2748, allocations: 175.2 kB / 437 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005651/0.2754, allocations: 0.4927 MB / 437.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2754, allocations: 0 / 437.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2754, allocations: 0 / 437.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.2754, allocations: 0 / 437.5 MB, free: 0.668 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.001706/0.2771, allocations: 0.6843 MB / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.2772, allocations: 11.98 kB / 438.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.2773, allocations: 40.7 kB / 438.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005575/0.2778, allocations: 269.3 kB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.278, allocations: 131.9 kB / 438.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.34e-05/0.278, allocations: 32.31 kB / 438.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005548/0.2786, allocations: 360.2 kB / 439 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.2786, allocations: 11.88 kB / 439 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.2787, allocations: 12 kB / 439 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2787, allocations: 8 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003605/0.279, allocations: 165.2 kB / 439.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002795/0.2818, allocations: 1.286 MB / 440.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.282, allocations: 97.19 kB / 440.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.2822, allocations: 53.81 kB / 440.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.2822, allocations: 0 / 440.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.2822, allocations: 38.56 kB / 440.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.2822, allocations: 0 / 440.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003136/0.2853, allocations: 0.9253 MB / 441.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.654e-05/0.2854, allocations: 110.8 kB / 441.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.2858, allocations: 324.3 kB / 442 MB, free: 11.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.2858, allocations: 33.7 kB / 442 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001738/0.286, allocations: 220.3 kB / 442.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.721e-05/0.286, allocations: 43.64 kB / 442.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.2862, allocations: 77.59 kB / 442.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2864, allocations: 338.8 kB / 442.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.2867, allocations: 155.9 kB / 442.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004534/0.2872, allocations: 277.5 kB / 443.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000691/0.2879, allocations: 361.1 kB / 443.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2879, allocations: 0 / 443.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009604/0.2975, allocations: 1.302 MB / 444.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.2975, allocations: 4 kB / 444.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2975, allocations: 8.062 kB / 444.8 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0113/0.3088, allocations: 1.153 MB / 445.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005093/0.3093, allocations: 71.86 kB / 446 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.3207, allocations: 4.983 MB / 451 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005997/0.3213, allocations: 35.97 kB / 451 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.395e-05/0.3214, allocations: 19.97 kB / 451 MB, free: 2.449 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.000227/0.3216, allocations: 149.7 kB / 451.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.402e-05/0.3217, allocations: 31.81 kB / 451.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.754e-05/0.3217, allocations: 25.89 kB / 451.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3217, allocations: 0 / 451.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.3217, allocations: 4 kB / 451.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3217, allocations: 0 / 451.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.3228, allocations: 0.6339 MB / 451.9 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3228, allocations: 4 kB / 451.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.3232, allocations: 47.94 kB / 451.9 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3232, allocations: 0 / 451.9 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.3232, allocations: 15.92 kB / 452 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3232, allocations: 0 / 452 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3232, allocations: 0 / 452 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008811/0.3241, allocations: 0.5219 MB / 452.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.207e-05/0.3241, allocations: 23.81 kB / 452.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.3242, allocations: 11.98 kB / 452.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/0.3246, allocations: 19.98 kB / 452.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.785e-05/0.3247, allocations: 15.97 kB / 452.5 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.3247, allocations: 11.92 kB / 452.6 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002752/0.325, allocations: 219.1 kB / 452.8 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.325, allocations: 0 / 452.8 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005382/0.3255, allocations: 108 kB / 452.9 MB, free: 0.5547 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.0001352/0.3256, allocations: 95.25 kB / 453 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002045/0.3277, allocations: 0.7354 MB / 453.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.3277, allocations: 8 kB / 453.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.3279, allocations: 91.94 kB / 453.8 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.0005721/0.3285, allocations: 79.06 kB / 453.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.3298, allocations: 0.5936 MB / 454.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.33, allocations: 177 kB / 454.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001799/0.3301, allocations: 39.08 kB / 454.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.3302, allocations: 27.41 kB / 454.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3302, allocations: 0 / 454.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of Templates: time 0.01619/0.3464, allocations: 10.23 MB / 464.9 MB, free: 4.477 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/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.055462591350079]