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.001322/0.001322, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001171/0.001171, allocations: 171.9 kB / 24.82 MB, free: 9.273 MB / 18.57 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.01/1.01, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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 1.733e-06/1.733e-06, allocations: 0 / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.295e-05, allocations: 2.312 kB / 273.3 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003848/0.003871, allocations: 2.851 MB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.005196, allocations: 0.8766 MB / 277.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.00534, allocations: 11.94 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.0055, allocations: 55.44 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.005778, allocations: 123 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002999/0.006078, allocations: 227.5 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004628/0.00654, allocations: 0.5527 MB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.006701, allocations: 76.2 kB / 278.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002809/0.006981, allocations: 299.3 kB / 278.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.007219, allocations: 179.5 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.322e-05/0.007282, allocations: 48 kB / 278.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.863e-05/0.007341, allocations: 48 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.422e-05/0.007415, allocations: 99.62 kB / 278.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.007537, allocations: 151.6 kB / 278.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003487/0.007886, allocations: 334.8 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.007888, allocations: 0 / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.011e-06/0.00789, allocations: 0 / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.007893, allocations: 0 / 279.2 MB, free: 11.29 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.002791/0.01068, allocations: 0.7802 MB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.01072, allocations: 11.98 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.768e-05/0.01081, allocations: 60.7 kB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.01112, allocations: 271.4 kB / 280.3 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.01123, allocations: 131.9 kB / 280.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/0.01129, allocations: 36.33 kB / 280.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/0.01161, allocations: 329.1 kB / 280.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.01162, allocations: 192 / 280.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.01164, allocations: 16.12 kB / 280.9 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.01165, allocations: 4 kB / 280.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/0.01176, allocations: 73.2 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002373/0.01413, allocations: 1.515 MB / 282.4 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001178/0.01425, allocations: 85.97 kB / 282.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.715e-05/0.01429, allocations: 31.61 kB / 282.6 MB, free: 7.719 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.0143, allocations: 0 / 282.6 MB, free: 7.719 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.01433, allocations: 37.39 kB / 282.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.01433, allocations: 0 / 282.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001556/0.01588, allocations: 0.583 MB / 283.2 MB, free: 7.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.01593, allocations: 106.8 kB / 283.3 MB, free: 6.891 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.01621, allocations: 346 kB / 283.6 MB, free: 6.535 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.005e-05/0.01624, allocations: 29.7 kB / 283.6 MB, free: 6.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.0164, allocations: 259.1 kB / 283.9 MB, free: 6.242 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.712e-05/0.01643, allocations: 47.62 kB / 283.9 MB, free: 6.195 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.01657, allocations: 91.16 kB / 284 MB, free: 6.098 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.01676, allocations: 0.5117 MB / 284.5 MB, free: 5.574 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.01689, allocations: 59.94 kB / 284.6 MB, free: 5.516 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.0171, allocations: 207 kB / 284.8 MB, free: 5.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003713/0.01748, allocations: 232 kB / 285 MB, free: 4.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01748, allocations: 0 / 285 MB, free: 4.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005138/0.02262, allocations: 1.112 MB / 286.1 MB, free: 3.852 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.02264, allocations: 7.125 kB / 286.2 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.02265, allocations: 4 kB / 286.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01117/0.03381, allocations: 2.099 MB / 288.3 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003263/0.03414, allocations: 71.88 kB / 288.3 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007769/0.04191, allocations: 4.823 MB / 293.2 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004212/0.04233, allocations: 31.98 kB / 293.2 MB, free: 12.58 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.236e-05/0.04237, allocations: 19.97 kB / 293.2 MB, free: 12.56 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 (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.0001683/0.04254, allocations: 172.5 kB / 293.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/0.04262, allocations: 31.81 kB / 293.4 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.652e-05/0.04265, allocations: 25.95 kB / 293.4 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.04266, allocations: 3.938 kB / 293.4 MB, free: 12.32 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.04266, allocations: 4.188 kB / 293.4 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.04267, allocations: 8 kB / 293.4 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007498/0.04342, allocations: 0.5674 MB / 294 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.04342, allocations: 0 / 294 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000264/0.04369, allocations: 43.95 kB / 294.1 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.04369, allocations: 7.938 kB / 294.1 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.04371, allocations: 7.922 kB / 294.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.04371, allocations: 0 / 294.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.04371, allocations: 0 / 294.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.04412, allocations: 418.7 kB / 294.5 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.04417, allocations: 35.83 kB / 294.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.944e-05/0.04421, allocations: 11.94 kB / 294.5 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.04449, allocations: 15.98 kB / 294.5 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.04455, allocations: 15.97 kB / 294.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.04457, allocations: 7.984 kB / 294.6 MB, free: 11.13 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001607/0.04473, allocations: 226.9 kB / 294.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.04473, allocations: 0 / 294.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004895/0.04522, allocations: 100 kB / 294.9 MB, free: 10.81 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.0001157/0.04534, allocations: 107.2 kB / 295 MB, free: 10.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.04668, allocations: 0.7091 MB / 295.7 MB, free: 9.953 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.04669, allocations: 4 kB / 295.7 MB, free: 9.949 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.561e-05/0.04678, allocations: 35.64 kB / 295.7 MB, free: 9.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.04713, allocations: 90.58 kB / 295.8 MB, free: 9.828 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008691/0.048, allocations: 0.5801 MB / 296.4 MB, free: 9.211 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.126e-05/0.04805, allocations: 92.61 kB / 296.5 MB, free: 9.102 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.118e-05/0.04814, allocations: 30.98 kB / 296.5 MB, free: 9.074 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.04831, allocations: 134.1 kB / 296.7 MB, free: 8.941 MB / 282.7 MB Notification: Performance of SimCode: time 7.32e-07/0.04831, allocations: 0 / 296.7 MB, free: 8.941 MB / 282.7 MB Notification: Performance of Templates: time 0.1164/0.1647, allocations: 10.84 MB / 307.5 MB, free: 38.83 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.140000151935965]