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.001088/0.001088, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.005662/0.00675, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001162/0.001162, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002754/0.003916, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.003/1.003, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08852/1.092, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] 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.934e-06/1.934e-06, allocations: 0 / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.469e-05/2.662e-05, allocations: 2.312 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003268/0.003294, allocations: 2.912 MB / 247.6 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.004554, allocations: 0.9152 MB / 248.6 MB, free: 10.35 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.004676, allocations: 4 kB / 248.6 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.00479, allocations: 51.39 kB / 248.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.005029, allocations: 139 kB / 248.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003067/0.005336, allocations: 223.5 kB / 249 MB, free: 9.938 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004378/0.005773, allocations: 0.545 MB / 249.5 MB, free: 9.391 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.005924, allocations: 82.25 kB / 249.6 MB, free: 9.312 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.006238, allocations: 345.2 kB / 249.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.006438, allocations: 171.5 kB / 250.1 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.332e-05/0.006491, allocations: 48 kB / 250.1 MB, free: 8.758 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.00654, allocations: 51.94 kB / 250.2 MB, free: 8.707 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.105e-05/0.006591, allocations: 67.81 kB / 250.3 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.499e-05/0.006676, allocations: 115.8 kB / 250.4 MB, free: 8.527 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003042/0.006981, allocations: 302.9 kB / 250.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/0.006992, allocations: 0 / 250.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.006993, allocations: 0 / 250.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.007004, allocations: 8 kB / 250.7 MB, free: 8.223 MB / 250.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.0009143/0.007918, allocations: 0.71 MB / 251.4 MB, free: 7.488 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.007949, allocations: 8.031 kB / 251.4 MB, free: 7.48 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.069e-05/0.00802, allocations: 44.91 kB / 251.4 MB, free: 7.438 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.008292, allocations: 224.6 kB / 251.7 MB, free: 7.195 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.826e-05/0.00839, allocations: 135.9 kB / 251.8 MB, free: 7.035 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.585e-05/0.008436, allocations: 28.38 kB / 251.8 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002651/0.008701, allocations: 313.3 kB / 252.1 MB, free: 6.652 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.008713, allocations: 4.125 kB / 252.1 MB, free: 6.648 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.008731, allocations: 16.12 kB / 252.1 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.008739, allocations: 8 kB / 252.2 MB, free: 6.625 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.743e-05/0.008826, allocations: 69.28 kB / 252.2 MB, free: 6.559 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.01006, allocations: 1.096 MB / 253.3 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.682e-05/0.01015, allocations: 65.25 kB / 253.4 MB, free: 5.336 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.874e-05/0.01017, allocations: 29.58 kB / 253.4 MB, free: 5.301 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.01019, allocations: 4 kB / 253.4 MB, free: 5.297 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.01021, allocations: 42.67 kB / 253.5 MB, free: 5.246 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 2.555e-06/0.01021, allocations: 4 kB / 253.5 MB, free: 5.242 MB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.001365/0.01158, allocations: 0.6133 MB / 254.1 MB, free: 4.566 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.959e-05/0.01161, allocations: 81.11 kB / 254.2 MB, free: 4.469 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001671/0.01177, allocations: 282.8 kB / 254.4 MB, free: 4.18 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.0118, allocations: 33.7 kB / 254.5 MB, free: 4.141 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.9e-05/0.01189, allocations: 192.8 kB / 254.6 MB, free: 3.945 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.01191, allocations: 43.62 kB / 254.7 MB, free: 3.902 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.414e-05/0.012, allocations: 81.44 kB / 254.8 MB, free: 3.816 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.75e-05/0.01208, allocations: 342.8 kB / 255.1 MB, free: 3.473 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.433e-05/0.01215, allocations: 47.95 kB / 255.2 MB, free: 3.426 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.01227, allocations: 158.3 kB / 255.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.01245, allocations: 201.9 kB / 255.5 MB, free: 2.992 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01245, allocations: 4.031 kB / 255.5 MB, free: 2.988 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003337/0.01578, allocations: 1.048 MB / 256.6 MB, free: 1.93 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.0158, allocations: 4 kB / 256.6 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.0158, allocations: 4 kB / 256.6 MB, free: 1.922 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009169/0.02497, allocations: 2.09 MB / 258.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.02526, allocations: 83.84 kB / 258.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005887/0.03115, allocations: 3.68 MB / 262.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003037/0.03145, allocations: 31.98 kB / 262.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.03148, allocations: 11.97 kB / 262.5 MB, free: 11.84 MB / 266.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 (integrator1.local_reset,integrator2.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.0001451/0.03163, allocations: 129.7 kB / 262.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.608e-05/0.03169, allocations: 19.98 kB / 262.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.229e-05/0.03173, allocations: 25.95 kB / 262.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.03173, allocations: 0 / 262.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.03173, allocations: 0 / 262.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.03174, allocations: 11.94 kB / 262.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000573/0.03231, allocations: 402 kB / 263 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.03231, allocations: 0 / 263 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.03255, allocations: 67.84 kB / 263.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.645e-05/0.0326, allocations: 19.81 kB / 263.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.0326, allocations: 4 kB / 263.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.03262, allocations: 7.922 kB / 263.1 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.03262, allocations: 0 / 263.1 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.03262, allocations: 7.938 kB / 263.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003048/0.03293, allocations: 293.4 kB / 263.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.03296, allocations: 4 kB / 263.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.03321, allocations: 27.92 kB / 263.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.03327, allocations: 15.91 kB / 263.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.03328, allocations: 3.984 kB / 263.5 MB, free: 10.77 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001222/0.0334, allocations: 112.6 kB / 263.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0334, allocations: 0 / 263.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004376/0.03384, allocations: 96 kB / 263.7 MB, free: 10.57 MB / 266.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.0001151/0.03396, allocations: 84.44 kB / 263.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.03501, allocations: 0.5941 MB / 264.4 MB, free: 9.855 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.03502, allocations: 4 kB / 264.4 MB, free: 9.852 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.376e-05/0.03511, allocations: 52.73 kB / 264.4 MB, free: 9.797 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005836/0.03569, allocations: 492.6 kB / 264.9 MB, free: 9.234 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.03805, allocations: 0.5947 MB / 265.5 MB, free: 8.625 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.715e-05/0.03813, allocations: 96.47 kB / 265.6 MB, free: 8.512 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.03829, allocations: 35.27 kB / 265.6 MB, free: 8.477 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.03851, allocations: 107.3 kB / 265.7 MB, free: 8.371 MB / 266.7 MB Notification: Performance of SimCode: time 8.51e-07/0.03851, allocations: 3.938 kB / 265.7 MB, free: 8.367 MB / 266.7 MB Notification: Performance of Templates: time 0.009745/0.04826, allocations: 9.512 MB / 275.2 MB, free: 14.93 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7645658096298575]