Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001267/0.001267, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001448/0.001448, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 258.3 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 72.75 kB / 379.1 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2494, allocations: 53.37 MB / 432.4 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004902/0.2543, allocations: 2.925 MB / 435.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.2564, allocations: 0.9039 MB / 436.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003923/0.2568, allocations: 7.938 kB / 436.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002865/0.2571, allocations: 47.45 kB / 436.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005057/0.2576, allocations: 127.2 kB / 436.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004888/0.2581, allocations: 227.6 kB / 436.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008068/0.2589, allocations: 0.5373 MB / 437.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002386/0.2591, allocations: 79.38 kB / 437.3 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003986/0.2595, allocations: 207.3 kB / 437.5 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004841/0.26, allocations: 219.1 kB / 437.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.2602, allocations: 48 kB / 437.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.2603, allocations: 52 kB / 437.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.2604, allocations: 103.6 kB / 437.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.2607, allocations: 207 kB / 438.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007274/0.2614, allocations: 496 kB / 438.6 MB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2614, allocations: 0 / 438.6 MB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2614, allocations: 4 kB / 438.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.2614, allocations: 0 / 438.6 MB, free: 0.7891 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.001954/0.2634, allocations: 0.6765 MB / 439.3 MB, free: 84 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.2634, allocations: 8.031 kB / 439.3 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.2635, allocations: 40.7 kB / 439.3 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005861/0.2641, allocations: 273.4 kB / 439.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.2643, allocations: 84.39 kB / 439.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.77e-05/0.2643, allocations: 28.38 kB / 439.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004984/0.2648, allocations: 287.1 kB / 440 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.2648, allocations: 3.953 kB / 440 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.2649, allocations: 12 kB / 440 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2649, allocations: 8 kB / 440 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003685/0.2652, allocations: 169.2 kB / 440.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003008/0.2683, allocations: 1.418 MB / 441.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.2685, allocations: 109.2 kB / 441.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.2686, allocations: 49.83 kB / 441.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.2686, allocations: 0 / 441.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.2687, allocations: 42.55 kB / 441.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.2687, allocations: 0 / 441.8 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003323/0.272, allocations: 0.9249 MB / 442.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/0.2721, allocations: 110.8 kB / 442.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004061/0.2725, allocations: 324.5 kB / 443.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.2725, allocations: 29.7 kB / 443.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.2727, allocations: 212.3 kB / 443.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.2728, allocations: 47.59 kB / 443.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2729, allocations: 77.64 kB / 443.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.2731, allocations: 338.8 kB / 443.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.2735, allocations: 151.9 kB / 443.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004433/0.2739, allocations: 251.8 kB / 444.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006837/0.2746, allocations: 350.1 kB / 444.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2746, allocations: 4 kB / 444.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01009/0.2847, allocations: 1.314 MB / 445.9 MB, free: 9.098 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.2847, allocations: 4 kB / 445.9 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.2847, allocations: 7.984 kB / 445.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01142/0.2961, allocations: 1.153 MB / 447 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004466/0.2966, allocations: 67.88 kB / 447.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.3086, allocations: 5.135 MB / 452.2 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005701/0.3091, allocations: 35.92 kB / 452.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-05/0.3092, allocations: 19.97 kB / 452.3 MB, free: 2.438 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.0002335/0.3094, allocations: 145.8 kB / 452.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.536e-05/0.3095, allocations: 31.81 kB / 452.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.958e-05/0.3096, allocations: 26.61 kB / 452.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3096, allocations: 4 kB / 452.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.3096, allocations: 0 / 452.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3096, allocations: 8.016 kB / 452.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.3108, allocations: 0.7192 MB / 453.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3108, allocations: 0 / 453.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.3112, allocations: 47.94 kB / 453.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3112, allocations: 3.938 kB / 453.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.3112, allocations: 15.92 kB / 453.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3112, allocations: 0 / 453.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3112, allocations: 0 / 453.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008798/0.3121, allocations: 0.5175 MB / 453.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.797e-05/0.3122, allocations: 35.83 kB / 453.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.723e-05/0.3122, allocations: 3.938 kB / 453.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004294/0.3126, allocations: 36.09 kB / 453.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.445e-05/0.3127, allocations: 15.97 kB / 453.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.3127, allocations: 7.984 kB / 453.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000259/0.313, allocations: 223.1 kB / 454.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.313, allocations: 0 / 454.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005039/0.3135, allocations: 96 kB / 454.2 MB, free: 452 kB / 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.0001445/0.3136, allocations: 107.1 kB / 454.3 MB, free: 332 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.3159, allocations: 0.7397 MB / 455 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3159, allocations: 0 / 455 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.3161, allocations: 99.81 kB / 455.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.3167, allocations: 72.77 kB / 455.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.318, allocations: 0.604 MB / 455.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.3185, allocations: 0.7795 MB / 456.6 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.3186, allocations: 30.27 kB / 456.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.3187, allocations: 31.41 kB / 456.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3187, allocations: 0 / 456.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of Templates: time 0.01764/0.3364, allocations: 8.941 MB / 465.6 MB, free: 5.012 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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.053574745543301]