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.001317/0.001317, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.001116/0.001116, allocations: 165.5 kB / 24.91 MB, free: 8.766 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.9694/0.9694, allocations: 177 MB / 205.2 MB, free: 5.402 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.353e-06/1.353e-06, allocations: 0 / 273.4 MB, free: 1.117 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.4e-05/1.535e-05, allocations: 2.312 kB / 273.4 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.008217/0.008232, allocations: 2.896 MB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.009408, allocations: 0.8959 MB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.009534, allocations: 7.938 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.009678, allocations: 51.45 kB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.009921, allocations: 131.1 kB / 277.4 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.01018, allocations: 231.5 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.01056, allocations: 0.5449 MB / 278.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.01069, allocations: 86.73 kB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002367/0.01093, allocations: 303.3 kB / 278.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.01114, allocations: 175.5 kB / 278.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.622e-05/0.01118, allocations: 44 kB / 278.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.045e-05/0.01123, allocations: 48 kB / 278.8 MB, free: 11.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.584e-05/0.01129, allocations: 107.6 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.046e-05/0.01138, allocations: 143.6 kB / 279.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002798/0.01166, allocations: 338.8 kB / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.01166, allocations: 0 / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.01166, allocations: 0 / 279.4 MB, free: 11.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.01167, allocations: 0 / 279.4 MB, free: 11.11 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.0007745/0.01244, allocations: 0.6516 MB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.01247, allocations: 11.98 kB / 280.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.136e-05/0.01254, allocations: 48.89 kB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.0128, allocations: 220.7 kB / 280.3 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.745e-05/0.01287, allocations: 131.9 kB / 280.5 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.01291, allocations: 32.38 kB / 280.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.01313, allocations: 309.3 kB / 280.8 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.01314, allocations: 4.172 kB / 280.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.01315, allocations: 12.12 kB / 280.8 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.01316, allocations: 4 kB / 280.8 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.744e-05/0.01324, allocations: 73.23 kB / 280.9 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.01447, allocations: 1.1 MB / 282 MB, free: 8.367 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.465e-05/0.01456, allocations: 69.05 kB / 282.1 MB, free: 8.281 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.722e-05/0.01458, allocations: 29.91 kB / 282.1 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.01459, allocations: 8 kB / 282.1 MB, free: 8.238 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.01461, allocations: 30.56 kB / 282.1 MB, free: 8.199 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.01461, allocations: 0 / 282.1 MB, free: 8.199 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001317/0.01593, allocations: 0.6289 MB / 282.8 MB, free: 7.508 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.01597, allocations: 102.8 kB / 282.9 MB, free: 7.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.01612, allocations: 274.9 kB / 283.1 MB, free: 7.102 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.01615, allocations: 33.7 kB / 283.2 MB, free: 7.062 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.212e-05/0.01622, allocations: 192.9 kB / 283.3 MB, free: 6.871 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.01625, allocations: 47.56 kB / 283.4 MB, free: 6.824 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.347e-05/0.01633, allocations: 77.58 kB / 283.5 MB, free: 6.742 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.331e-05/0.01641, allocations: 346.8 kB / 283.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.211e-05/0.01649, allocations: 43.97 kB / 283.9 MB, free: 6.352 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.0166, allocations: 166.2 kB / 284 MB, free: 6.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.01678, allocations: 194 kB / 284.2 MB, free: 5.918 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.01678, allocations: 0 / 284.2 MB, free: 5.918 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.003403/0.02019, allocations: 1.033 MB / 285.2 MB, free: 4.871 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.0202, allocations: 11.94 kB / 285.2 MB, free: 4.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.02021, allocations: 4 kB / 285.3 MB, free: 4.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00715/0.02736, allocations: 2.082 MB / 287.3 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.02755, allocations: 71.86 kB / 287.4 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.03203, allocations: 3.651 MB / 291.1 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.03223, allocations: 27.98 kB / 291.1 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.03225, allocations: 19.97 kB / 291.1 MB, free: 14.82 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 9.999e-05/0.03235, allocations: 121.8 kB / 291.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.0324, allocations: 23.92 kB / 291.2 MB, free: 14.67 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.03243, allocations: 29.95 kB / 291.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.03243, allocations: 4 kB / 291.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.03243, allocations: 0 / 291.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.03244, allocations: 7.922 kB / 291.3 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004134/0.03285, allocations: 405.8 kB / 291.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.03285, allocations: 4.125 kB / 291.7 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.03302, allocations: 51.86 kB / 291.7 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.03302, allocations: 4 kB / 291.7 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.03304, allocations: 3.984 kB / 291.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.03304, allocations: 3.938 kB / 291.7 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.03304, allocations: 4 kB / 291.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002371/0.03328, allocations: 290.7 kB / 292 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.03331, allocations: 27.8 kB / 292.1 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.03334, allocations: 4 kB / 292.1 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001538/0.03349, allocations: 27.91 kB / 292.1 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.03353, allocations: 11.97 kB / 292.1 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.03354, allocations: 11.98 kB / 292.1 MB, free: 13.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.017e-05/0.03362, allocations: 100.6 kB / 292.2 MB, free: 13.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03362, allocations: 4.031 kB / 292.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003215/0.03395, allocations: 100 kB / 292.3 MB, free: 13.55 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 9.92e-05/0.03404, allocations: 80.42 kB / 292.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009052/0.03495, allocations: 0.5904 MB / 293 MB, free: 12.85 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.03496, allocations: 4 kB / 293 MB, free: 12.85 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.131e-05/0.03502, allocations: 40.77 kB / 293 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.03533, allocations: 86.45 kB / 293.1 MB, free: 12.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008198/0.03615, allocations: 0.573 MB / 293.7 MB, free: 12.12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.618e-05/0.0362, allocations: 96.55 kB / 293.8 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.03631, allocations: 34.95 kB / 293.8 MB, free: 11.98 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.03647, allocations: 107.3 kB / 293.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.03647, allocations: 0 / 293.9 MB, free: 11.88 MB / 282.7 MB Notification: Performance of Templates: time 0.01056/0.04704, allocations: 10.68 MB / 304.6 MB, free: 1.277 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 -s gbode -gbm=radauIIA3 -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.0142358569428325]