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.001281/0.001281, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001089/0.001089, allocations: 163.1 kB / 24.91 MB, free: 8.719 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.931/0.931, allocations: 177 MB / 205.2 MB, free: 4.422 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.483e-06/1.483e-06, allocations: 0 / 273.4 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.938e-05, allocations: 6.703 kB / 273.4 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002697/0.002716, allocations: 2.843 MB / 276.2 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.00375, allocations: 0.9018 MB / 277.2 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.003861, allocations: 11.94 kB / 277.2 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.003997, allocations: 51.44 kB / 277.2 MB, free: 468 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.004233, allocations: 132.4 kB / 277.3 MB, free: 336 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.004464, allocations: 224.5 kB / 277.6 MB, free: 112 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003608/0.004825, allocations: 0.5489 MB / 278.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.004957, allocations: 74.92 kB / 278.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.00517, allocations: 303.4 kB / 278.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.005362, allocations: 183.4 kB / 278.7 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.814e-05/0.00541, allocations: 44 kB / 278.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.04e-05/0.00545, allocations: 48 kB / 278.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.043e-05/0.00551, allocations: 99.7 kB / 278.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.272e-05/0.005603, allocations: 151.6 kB / 279 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.005876, allocations: 338.8 kB / 279.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.005877, allocations: 0 / 279.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.005878, allocations: 0 / 279.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.005882, allocations: 0 / 279.3 MB, free: 14.34 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.0007759/0.006658, allocations: 0.6478 MB / 280 MB, free: 13.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.836e-05/0.006686, allocations: 8.031 kB / 280 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/0.006745, allocations: 44.91 kB / 280 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.007042, allocations: 228.6 kB / 280.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.898e-05/0.007121, allocations: 127.8 kB / 280.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.007162, allocations: 32.36 kB / 280.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.007383, allocations: 309.3 kB / 280.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.007394, allocations: 4.125 kB / 280.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.00741, allocations: 16.12 kB / 280.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.007417, allocations: 8 kB / 280.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.791e-05/0.007495, allocations: 62.7 kB / 280.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.008663, allocations: 1.107 MB / 281.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.872e-05/0.008752, allocations: 69.06 kB / 282 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.767e-05/0.008779, allocations: 25.89 kB / 282 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.008794, allocations: 8 kB / 282 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.008813, allocations: 34.56 kB / 282 MB, free: 11.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.82e-07/0.008814, allocations: 0 / 282 MB, free: 11.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001348/0.01016, allocations: 0.6181 MB / 282.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.01021, allocations: 110.8 kB / 282.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002384/0.01045, allocations: 290.8 kB / 283 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.01048, allocations: 29.7 kB / 283.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.565e-05/0.01058, allocations: 192.8 kB / 283.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.01061, allocations: 47.62 kB / 283.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.54e-05/0.01069, allocations: 73.58 kB / 283.4 MB, free: 9.969 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.494e-05/0.01077, allocations: 342.8 kB / 283.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.12e-05/0.01085, allocations: 51.81 kB / 283.8 MB, free: 9.574 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.01097, allocations: 158.2 kB / 283.9 MB, free: 9.375 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.01115, allocations: 201.6 kB / 284.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01115, allocations: 0 / 284.1 MB, free: 9.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003338/0.01449, allocations: 1.044 MB / 285.2 MB, free: 8.09 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.01451, allocations: 4 kB / 285.2 MB, free: 8.086 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.01451, allocations: 8.062 kB / 285.2 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006759/0.02127, allocations: 2.077 MB / 287.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.02144, allocations: 67.88 kB / 287.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004061/0.0255, allocations: 3.61 MB / 290.9 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.02572, allocations: 31.98 kB / 291 MB, free: 2.113 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.02574, allocations: 11.98 kB / 291 MB, free: 2.102 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.0001091/0.02585, allocations: 137.7 kB / 291.1 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.02589, allocations: 15.98 kB / 291.1 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.02592, allocations: 29.95 kB / 291.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.02592, allocations: 0 / 291.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.02592, allocations: 4 kB / 291.2 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.02593, allocations: 3.938 kB / 291.2 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004185/0.02634, allocations: 405.8 kB / 291.6 MB, free: 1.484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.02635, allocations: 4 kB / 291.6 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.02649, allocations: 43.89 kB / 291.6 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.02649, allocations: 4 kB / 291.6 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.0265, allocations: 7.984 kB / 291.6 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.0265, allocations: 7.938 kB / 291.6 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.02651, allocations: 0 / 291.6 MB, free: 1.418 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.02672, allocations: 294.7 kB / 291.9 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.02675, allocations: 23.8 kB / 291.9 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.02677, allocations: 4 kB / 291.9 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.02692, allocations: 31.98 kB / 292 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.106e-05/0.02696, allocations: 16 kB / 292 MB, free: 1.039 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.02697, allocations: 3.984 kB / 292 MB, free: 1.035 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.802e-05/0.02705, allocations: 108.6 kB / 292.1 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02705, allocations: 0 / 292.1 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002999/0.02735, allocations: 100 kB / 292.2 MB, free: 0.8281 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.0001052/0.02745, allocations: 76.42 kB / 292.3 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000783/0.02823, allocations: 0.5868 MB / 292.9 MB, free: 132 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.02824, allocations: 4 kB / 292.9 MB, free: 128 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.421e-05/0.0283, allocations: 36.75 kB / 292.9 MB, free: 88 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.02857, allocations: 86.47 kB / 293 MB, free: 4 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008452/0.02942, allocations: 0.5735 MB / 293.6 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.148e-05/0.02947, allocations: 96.61 kB / 293.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.569e-05/0.02957, allocations: 38.95 kB / 293.7 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.02972, allocations: 107.3 kB / 293.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of SimCode: time 7.12e-07/0.02972, allocations: 0 / 293.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of Templates: time 0.01029/0.04001, allocations: 10.68 MB / 304.5 MB, free: 4.574 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: 2.817051179241389]