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.001021/0.001021, allocations: 84.25 kB / 22.21 MB, free: 2.289 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.001126/0.001126, allocations: 169.8 kB / 25.61 MB, free: 8.555 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 0.921/0.921, allocations: 177 MB / 205.9 MB, free: 4.457 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.242e-06/1.242e-06, allocations: 0 / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.168e-05, allocations: 4.719 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002896/0.002918, allocations: 2.863 MB / 277 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.00404, allocations: 0.8744 MB / 277.9 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.004177, allocations: 7.938 kB / 277.9 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.004321, allocations: 47.52 kB / 277.9 MB, free: 488 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002441/0.004565, allocations: 135.8 kB / 278 MB, free: 352 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002646/0.00483, allocations: 223.5 kB / 278.3 MB, free: 128 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.005246, allocations: 0.5528 MB / 278.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001479/0.005394, allocations: 75.62 kB / 278.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.005631, allocations: 295.4 kB / 279.2 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.005835, allocations: 179.5 kB / 279.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.011e-05/0.005885, allocations: 44 kB / 279.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.349e-05/0.005929, allocations: 48 kB / 279.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/0.00599, allocations: 107.6 kB / 279.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.779e-05/0.006088, allocations: 147.6 kB / 279.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.006386, allocations: 342.8 kB / 280 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.006388, allocations: 0 / 280 MB, free: 14.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.006389, allocations: 0 / 280 MB, free: 14.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.006393, allocations: 0 / 280 MB, free: 14.36 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.0009473/0.007341, allocations: 0.7685 MB / 280.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.007372, allocations: 8.031 kB / 280.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.035e-05/0.007452, allocations: 64.7 kB / 280.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.00773, allocations: 271.4 kB / 281.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.627e-05/0.007816, allocations: 131.9 kB / 281.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.245e-05/0.007859, allocations: 28.38 kB / 281.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002456/0.008104, allocations: 329 kB / 281.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.008115, allocations: 192 / 281.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.008134, allocations: 16.12 kB / 281.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.008142, allocations: 12 kB / 281.6 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.797e-05/0.00823, allocations: 66.62 kB / 281.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.009658, allocations: 1.526 MB / 283.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001044/0.009762, allocations: 89.95 kB / 283.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.245e-05/0.009795, allocations: 39.61 kB / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.009807, allocations: 0 / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.009831, allocations: 41.39 kB / 283.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.009832, allocations: 0 / 283.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001232/0.01106, allocations: 0.5639 MB / 284 MB, free: 10.1 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.01111, allocations: 110.8 kB / 284.1 MB, free: 9.965 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.01134, allocations: 346 kB / 284.4 MB, free: 9.613 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.01137, allocations: 29.7 kB / 284.4 MB, free: 9.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.01149, allocations: 259.1 kB / 284.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.496e-05/0.01153, allocations: 51.58 kB / 284.7 MB, free: 9.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.814e-05/0.01163, allocations: 79.28 kB / 284.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.01178, allocations: 0.5156 MB / 285.3 MB, free: 8.656 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.01188, allocations: 55.81 kB / 285.4 MB, free: 8.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.01203, allocations: 211 kB / 285.6 MB, free: 8.336 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.01224, allocations: 236 kB / 285.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01225, allocations: 0 / 285.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004029/0.01628, allocations: 1.12 MB / 286.9 MB, free: 6.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.01629, allocations: 12.06 kB / 287 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.0163, allocations: 0 / 287 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00825/0.02455, allocations: 2.091 MB / 289 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.0248, allocations: 63.88 kB / 289.1 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005623/0.03042, allocations: 4.829 MB / 293.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003221/0.03074, allocations: 31.97 kB / 294 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.03077, allocations: 15.98 kB / 294 MB, free: 15.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 (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.000146/0.03092, allocations: 176.5 kB / 294.2 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.77e-05/0.03098, allocations: 31.81 kB / 294.2 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.902e-05/0.03101, allocations: 25.95 kB / 294.2 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.03102, allocations: 3.938 kB / 294.2 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.03102, allocations: 4 kB / 294.2 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.237e-06/0.03102, allocations: 3.984 kB / 294.2 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005687/0.03159, allocations: 0.5595 MB / 294.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.03159, allocations: 0 / 294.8 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001656/0.03176, allocations: 55.88 kB / 294.8 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.03176, allocations: 4 kB / 294.8 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.03178, allocations: 7.922 kB / 294.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.03178, allocations: 3.938 kB / 294.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.03178, allocations: 0 / 294.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.03209, allocations: 422.8 kB / 295.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.36e-05/0.03212, allocations: 27.81 kB / 295.3 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.81e-05/0.03215, allocations: 11.94 kB / 295.3 MB, free: 14.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.03232, allocations: 24 kB / 295.3 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.56e-05/0.03237, allocations: 15.97 kB / 295.3 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.03238, allocations: 7.984 kB / 295.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001139/0.0325, allocations: 222.9 kB / 295.6 MB, free: 13.99 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0325, allocations: 0 / 295.6 MB, free: 13.99 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003732/0.03287, allocations: 103.9 kB / 295.7 MB, free: 13.89 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.0001035/0.03297, allocations: 99.25 kB / 295.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009584/0.03393, allocations: 0.713 MB / 296.5 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.03393, allocations: 4 kB / 296.5 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.228e-05/0.03401, allocations: 39.62 kB / 296.5 MB, free: 12.99 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003814/0.03439, allocations: 80.03 kB / 296.6 MB, free: 12.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.0354, allocations: 0.5906 MB / 297.2 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.156e-05/0.03548, allocations: 92.61 kB / 297.3 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.0356, allocations: 34.97 kB / 297.3 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001743/0.03577, allocations: 130.1 kB / 297.4 MB, free: 12.02 MB / 282.7 MB Notification: Performance of SimCode: time 1.103e-06/0.03577, allocations: 0 / 297.4 MB, free: 12.02 MB / 282.7 MB Notification: Performance of Templates: time 0.01187/0.04764, allocations: 11.03 MB / 308.5 MB, free: 1.066 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.063622278161347]