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.001487/0.001487, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001666/0.001666, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.56/1.56, allocations: 177.2 MB / 204.6 MB, free: 5.602 MB / 186.7 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 1.523e-06/1.523e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.56e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004529/0.004554, allocations: 2.709 MB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.006221, allocations: 0.8533 MB / 275.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.006375, allocations: 11.94 kB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001919/0.006566, allocations: 55.44 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00035/0.006916, allocations: 139 kB / 276.1 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.007433, allocations: 219.5 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006621/0.008095, allocations: 0.5528 MB / 276.9 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.008291, allocations: 75.62 kB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003845/0.008676, allocations: 299.4 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003051/0.008981, allocations: 171.5 kB / 277.4 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.039e-05/0.009061, allocations: 48 kB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.516e-05/0.009137, allocations: 44 kB / 277.5 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.009249, allocations: 111.6 kB / 277.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.009425, allocations: 143.6 kB / 277.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006605/0.01009, allocations: 0.5218 MB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.01009, allocations: 3.938 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.01009, allocations: 0 / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.0101, allocations: 0 / 278.3 MB, free: 11.86 MB / 266.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.001843/0.01194, allocations: 0.6687 MB / 278.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.01197, allocations: 12.03 kB / 278.9 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.01212, allocations: 60.7 kB / 279 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000547/0.01266, allocations: 280.6 kB / 279.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.01283, allocations: 127.9 kB / 279.4 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.972e-05/0.0129, allocations: 28.38 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.01348, allocations: 364.6 kB / 279.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.0135, allocations: 4.188 kB / 279.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.01353, allocations: 16.12 kB / 279.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.01354, allocations: 8 kB / 279.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003747/0.01392, allocations: 161.2 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/0.01697, allocations: 1.302 MB / 281.3 MB, free: 8.652 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.0172, allocations: 109.2 kB / 281.4 MB, free: 8.527 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.01732, allocations: 45.83 kB / 281.4 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.01734, allocations: 11.94 kB / 281.4 MB, free: 8.465 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/0.01739, allocations: 30.56 kB / 281.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.002e-06/0.01739, allocations: 0 / 281.5 MB, free: 8.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.003392/0.02078, allocations: 0.9295 MB / 282.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.615e-05/0.02087, allocations: 110.8 kB / 282.5 MB, free: 7.301 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.02127, allocations: 320.4 kB / 282.8 MB, free: 6.984 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/0.02132, allocations: 33.7 kB / 282.9 MB, free: 6.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/0.02151, allocations: 208.4 kB / 283.1 MB, free: 6.734 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.826e-05/0.02157, allocations: 51.58 kB / 283.1 MB, free: 6.684 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.02173, allocations: 77.52 kB / 283.2 MB, free: 6.602 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004326/0.02217, allocations: 338.8 kB / 283.5 MB, free: 6.262 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.02256, allocations: 155.9 kB / 283.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004764/0.02304, allocations: 273.4 kB / 283.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007371/0.02378, allocations: 346.1 kB / 284.3 MB, free: 5.422 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.02378, allocations: 0 / 284.3 MB, free: 5.422 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01039/0.03417, allocations: 1.326 MB / 285.6 MB, free: 4.082 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.03419, allocations: 8 kB / 285.6 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.0342, allocations: 4 kB / 285.6 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01995/0.05415, allocations: 2.105 MB / 287.7 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.05464, allocations: 71.88 kB / 287.8 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01293/0.06757, allocations: 4.993 MB / 292.8 MB, free: 12.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006258/0.0682, allocations: 35.97 kB / 292.8 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.43e-05/0.06824, allocations: 15.98 kB / 292.8 MB, free: 12.64 MB / 282.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.0002333/0.06848, allocations: 149.7 kB / 293 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.06858, allocations: 35.75 kB / 293 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.695e-05/0.06863, allocations: 25.95 kB / 293 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.06863, allocations: 4 kB / 293 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.06863, allocations: 0 / 293 MB, free: 12.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.06864, allocations: 3.984 kB / 293 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.06987, allocations: 0.6377 MB / 293.7 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.06987, allocations: 0 / 293.7 MB, free: 11.74 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.07028, allocations: 43.94 kB / 293.7 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.07028, allocations: 4.094 kB / 293.7 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.07031, allocations: 15.91 kB / 293.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.07031, allocations: 0 / 293.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.07031, allocations: 4 kB / 293.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009856/0.07129, allocations: 0.5179 MB / 294.3 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.755e-05/0.07135, allocations: 31.83 kB / 294.3 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.848e-05/0.0714, allocations: 8 kB / 294.3 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.07184, allocations: 24.03 kB / 294.3 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.07192, allocations: 20.03 kB / 294.3 MB, free: 11.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.07194, allocations: 11.98 kB / 294.4 MB, free: 11.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002923/0.07223, allocations: 223.1 kB / 294.6 MB, free: 10.83 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07223, allocations: 3.938 kB / 294.6 MB, free: 10.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005435/0.07278, allocations: 96 kB / 294.7 MB, free: 10.73 MB / 282.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 0.0001439/0.07292, allocations: 95.25 kB / 294.8 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002243/0.07516, allocations: 0.7299 MB / 295.5 MB, free: 9.871 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.852e-06/0.07517, allocations: 4 kB / 295.5 MB, free: 9.867 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.07543, allocations: 88.19 kB / 295.6 MB, free: 9.781 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006052/0.07604, allocations: 83.64 kB / 295.7 MB, free: 9.707 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.07744, allocations: 0.5952 MB / 296.3 MB, free: 9.09 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.07765, allocations: 173.1 kB / 296.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.07782, allocations: 30.97 kB / 296.5 MB, free: 8.867 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.07794, allocations: 32.47 kB / 296.5 MB, free: 8.836 MB / 282.7 MB Notification: Performance of SimCode: time 8.62e-07/0.07794, allocations: 0 / 296.5 MB, free: 8.836 MB / 282.7 MB Notification: Performance of Templates: time 0.114/0.192, allocations: 9.807 MB / 306.3 MB, free: 42.75 MB / 282.7 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: 4.968524410040118]