Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002066/0.002066, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002523/0.002523, allocations: 215.8 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.809 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 47.92 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3116, allocations: 53.36 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004314/0.3159, allocations: 2.703 MB / 434.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.3175, allocations: 0.8612 MB / 435.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.3176, allocations: 7.938 kB / 435.2 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.3178, allocations: 51.44 kB / 435.2 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003211/0.3181, allocations: 123.2 kB / 435.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.3185, allocations: 227.6 kB / 435.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005965/0.3191, allocations: 0.5373 MB / 436.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002266/0.3193, allocations: 71.58 kB / 436.2 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002492/0.3196, allocations: 207.3 kB / 436.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003429/0.3199, allocations: 203.1 kB / 436.6 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.343e-05/0.32, allocations: 48 kB / 436.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.738e-05/0.3201, allocations: 44 kB / 436.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.3202, allocations: 107.6 kB / 436.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.3204, allocations: 171.2 kB / 436.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005852/0.3209, allocations: 0.4888 MB / 437.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.321, allocations: 4 kB / 437.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.321, allocations: 0 / 437.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.321, allocations: 0 / 437.4 MB, free: 0.8555 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.001734/0.3227, allocations: 0.6765 MB / 438.1 MB, free: 152 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3227, allocations: 12.03 kB / 438.1 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.3229, allocations: 40.7 kB / 438.1 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.3234, allocations: 277.3 kB / 438.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001741/0.3236, allocations: 135.9 kB / 438.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.904e-05/0.3237, allocations: 24.38 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005438/0.3242, allocations: 368.2 kB / 438.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.3242, allocations: 7.953 kB / 438.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.3243, allocations: 11.94 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3243, allocations: 8 kB / 439 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.3246, allocations: 165.2 kB / 439.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002775/0.3274, allocations: 1.29 MB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.3276, allocations: 101.2 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.3277, allocations: 49.81 kB / 440.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.3277, allocations: 0 / 440.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.3278, allocations: 34.56 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.3278, allocations: 4 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003186/0.331, allocations: 0.9258 MB / 441.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.3311, allocations: 102.8 kB / 441.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004088/0.3315, allocations: 328.3 kB / 441.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.128e-05/0.3315, allocations: 29.7 kB / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.3317, allocations: 212.4 kB / 442.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.946e-05/0.3317, allocations: 43.64 kB / 442.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3319, allocations: 85.59 kB / 442.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3321, allocations: 338.8 kB / 442.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003647/0.3324, allocations: 151.9 kB / 442.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/0.3329, allocations: 272.6 kB / 443.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007599/0.3337, allocations: 364.4 kB / 443.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3337, allocations: 0 / 443.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009187/0.3429, allocations: 1.306 MB / 444.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.3429, allocations: 10.19 kB / 444.7 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3429, allocations: 4.062 kB / 444.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01032/0.3532, allocations: 1.153 MB / 445.9 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.3537, allocations: 67.88 kB / 445.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.3647, allocations: 4.978 MB / 450.9 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006115/0.3653, allocations: 39.97 kB / 451 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.3654, allocations: 19.97 kB / 451 MB, free: 2.645 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.0002517/0.3656, allocations: 149.9 kB / 451.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.202e-05/0.3657, allocations: 31.81 kB / 451.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.727e-05/0.3657, allocations: 25.89 kB / 451.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3658, allocations: 8 kB / 451.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3658, allocations: 0 / 451.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3658, allocations: 0 / 451.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.3669, allocations: 0.6299 MB / 451.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3669, allocations: 4 kB / 451.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003494/0.3672, allocations: 51.88 kB / 451.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.3672, allocations: 4 kB / 451.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.3672, allocations: 3.984 kB / 451.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3672, allocations: 0 / 451.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.3672, allocations: 4 kB / 451.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008462/0.3681, allocations: 0.5275 MB / 452.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.144e-05/0.3681, allocations: 27.84 kB / 452.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/0.3682, allocations: 4.078 kB / 452.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.3686, allocations: 27.92 kB / 452.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.004e-05/0.3686, allocations: 15.91 kB / 452.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/0.3687, allocations: 11.92 kB / 452.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002435/0.3689, allocations: 227.1 kB / 452.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3689, allocations: 0 / 452.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004857/0.3694, allocations: 96 kB / 452.8 MB, free: 0.7461 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.0001274/0.3695, allocations: 99.25 kB / 452.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.3715, allocations: 0.7423 MB / 453.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3716, allocations: 0 / 453.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.3718, allocations: 95.88 kB / 453.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/0.3724, allocations: 83.94 kB / 453.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.3736, allocations: 0.5826 MB / 454.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.3738, allocations: 176.9 kB / 454.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.374, allocations: 34.91 kB / 454.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.3741, allocations: 31.41 kB / 454.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3741, allocations: 4 kB / 454.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of Templates: time 0.0165/0.3906, allocations: 10.24 MB / 464.9 MB, free: 4.672 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.3028892036527395]