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.0009687/0.0009687, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 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.0009529/0.0009529, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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 0.9608/0.9608, allocations: 177.2 MB / 205 MB, free: 5.301 MB / 186.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.623e-06/1.623e-06, allocations: 0 / 273 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.238e-05/2.401e-05, allocations: 2.312 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003851/0.003875, allocations: 2.885 MB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.00535, allocations: 0.8805 MB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.005504, allocations: 7.938 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.005675, allocations: 59.39 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003037/0.005979, allocations: 127.1 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.006309, allocations: 227.5 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004823/0.006791, allocations: 0.5489 MB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.006958, allocations: 76.48 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.007247, allocations: 299.4 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.007487, allocations: 179.5 kB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.515e-05/0.007552, allocations: 48 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.863e-05/0.007611, allocations: 48 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-05/0.007683, allocations: 99.64 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.007805, allocations: 147.6 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.008168, allocations: 342.8 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.008171, allocations: 0 / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008172, allocations: 3.938 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.008178, allocations: 0 / 278.9 MB, free: 11.42 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.001184/0.009362, allocations: 0.7686 MB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.009401, allocations: 8.031 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.009507, allocations: 60.7 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.009867, allocations: 267.5 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.009983, allocations: 131.9 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.214e-05/0.01003, allocations: 40.27 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003723/0.01041, allocations: 333.2 kB / 280.5 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.01042, allocations: 8.125 kB / 280.5 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.445e-05/0.01045, allocations: 12.12 kB / 280.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.01046, allocations: 8 kB / 280.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.01062, allocations: 85.28 kB / 280.6 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.0127, allocations: 1.561 MB / 282.2 MB, free: 7.941 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.01284, allocations: 90.17 kB / 282.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.676e-05/0.01288, allocations: 27.36 kB / 282.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.0129, allocations: 4.125 kB / 282.3 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.01292, allocations: 41.33 kB / 282.4 MB, free: 7.738 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.01293, allocations: 0 / 282.4 MB, free: 7.738 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.00167/0.0146, allocations: 0.676 MB / 283 MB, free: 6.992 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.01464, allocations: 106.8 kB / 283.1 MB, free: 6.863 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.01493, allocations: 354.2 kB / 283.5 MB, free: 6.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.01495, allocations: 29.7 kB / 283.5 MB, free: 6.465 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.01509, allocations: 259.1 kB / 283.8 MB, free: 6.207 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.83e-05/0.01513, allocations: 47.62 kB / 283.8 MB, free: 6.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.01525, allocations: 87.12 kB / 283.9 MB, free: 6.066 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.01539, allocations: 0.5156 MB / 284.4 MB, free: 5.539 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.01556, allocations: 71.95 kB / 284.5 MB, free: 5.469 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.0158, allocations: 226.2 kB / 284.7 MB, free: 5.188 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003499/0.01615, allocations: 259.7 kB / 285 MB, free: 4.887 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.01615, allocations: 0 / 285 MB, free: 4.887 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005215/0.02136, allocations: 1.156 MB / 286.1 MB, free: 3.715 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.02138, allocations: 4 kB / 286.1 MB, free: 3.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.02139, allocations: 4 kB / 286.1 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/0.0317, allocations: 2.098 MB / 288.2 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.032, allocations: 67.88 kB / 288.3 MB, free: 1.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1158/0.1478, allocations: 4.895 MB / 293.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.1481, allocations: 26.5 kB / 293.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.1481, allocations: 20.02 kB / 293.2 MB, free: 21.98 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 (integrator2.local_reset,integrator1.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.0001112/0.1483, allocations: 173.6 kB / 293.4 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.1483, allocations: 32.59 kB / 293.4 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.239e-05/0.1483, allocations: 25.92 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1483, allocations: 2.156 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1483, allocations: 2.359 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1483, allocations: 2.984 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005291/0.1489, allocations: 0.616 MB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.1489, allocations: 5.484 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.1491, allocations: 49.64 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1491, allocations: 1.984 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.1491, allocations: 4.531 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.1491, allocations: 6.141 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1491, allocations: 3.938 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003051/0.1494, allocations: 427.9 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-05/0.1494, allocations: 26.12 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.1494, allocations: 5.75 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.1496, allocations: 23.72 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.1497, allocations: 23.91 kB / 294.6 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1497, allocations: 7.562 kB / 294.7 MB, free: 21.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001416/0.1498, allocations: 238.7 kB / 294.9 MB, free: 20.97 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1498, allocations: 1.062 kB / 294.9 MB, free: 20.97 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003878/0.1502, allocations: 96.75 kB / 295 MB, free: 20.97 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 8.586e-05/0.1503, allocations: 114.7 kB / 295.1 MB, free: 20.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001011/0.1513, allocations: 0.7213 MB / 295.8 MB, free: 20.51 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1513, allocations: 0 / 295.8 MB, free: 20.51 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.789e-05/0.1514, allocations: 50.81 kB / 295.9 MB, free: 20.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.1518, allocations: 77.33 kB / 295.9 MB, free: 20.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000971/0.1527, allocations: 0.5863 MB / 296.5 MB, free: 20.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.521e-05/0.1528, allocations: 97.42 kB / 296.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.1529, allocations: 36.69 kB / 296.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.451e-05/0.153, allocations: 29.03 kB / 296.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.153, allocations: 0 / 296.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01171/0.1647, allocations: 10.78 MB / 307.5 MB, free: 16.12 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0633583683520555]