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.001716/0.001716, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.002048/0.002048, allocations: 161 kB / 24.56 MB, free: 20 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 1.046/1.046, allocations: 177.2 MB / 205 MB, free: 5.289 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.934e-06/1.934e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.917e-05/3.11e-05, allocations: 5.266 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.006895/0.006926, allocations: 2.882 MB / 275.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004597/0.01152, allocations: 0.8766 MB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.01173, allocations: 7.938 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.01192, allocations: 59.38 kB / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003665/0.01229, allocations: 127.1 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004494/0.01274, allocations: 227.5 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000583/0.01332, allocations: 0.5489 MB / 277.7 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.01354, allocations: 76.48 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003798/0.01392, allocations: 295.4 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.01417, allocations: 175.5 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.925e-05/0.01423, allocations: 48 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.067e-05/0.01428, allocations: 52 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.851e-05/0.01436, allocations: 103.6 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.01447, allocations: 147.6 kB / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000333/0.01481, allocations: 334.8 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.01481, allocations: 4 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.01481, allocations: 0 / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.01482, allocations: 3.938 kB / 278.9 MB, free: 11.41 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.0009764/0.0158, allocations: 0.7764 MB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.01583, allocations: 8.031 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.313e-05/0.01593, allocations: 60.7 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003338/0.01626, allocations: 267.5 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.01637, allocations: 127.9 kB / 280.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.067e-05/0.01642, allocations: 40.27 kB / 280.2 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.01676, allocations: 329.2 kB / 280.5 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.01677, allocations: 4.188 kB / 280.5 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.01679, allocations: 20.06 kB / 280.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.0168, allocations: 15.97 kB / 280.6 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/0.01694, allocations: 85.28 kB / 280.6 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.01868, allocations: 1.557 MB / 282.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.01886, allocations: 94.16 kB / 282.3 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.386e-05/0.01892, allocations: 31.48 kB / 282.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.01894, allocations: 4 kB / 282.3 MB, free: 7.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.01898, allocations: 37.39 kB / 282.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.01898, allocations: 3.938 kB / 282.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.00151/0.02049, allocations: 0.6682 MB / 283 MB, free: 6.977 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.02054, allocations: 110.8 kB / 283.1 MB, free: 6.844 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.02081, allocations: 354.2 kB / 283.5 MB, free: 6.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.02083, allocations: 29.7 kB / 283.5 MB, free: 6.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.02097, allocations: 259.1 kB / 283.8 MB, free: 6.188 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.021, allocations: 43.64 kB / 283.8 MB, free: 6.145 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.02111, allocations: 87.12 kB / 283.9 MB, free: 6.051 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.0213, allocations: 0.5117 MB / 284.4 MB, free: 5.527 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.02144, allocations: 71.94 kB / 284.5 MB, free: 5.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.02163, allocations: 226.2 kB / 284.7 MB, free: 5.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.02193, allocations: 251.5 kB / 284.9 MB, free: 4.883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.02193, allocations: 4.031 kB / 284.9 MB, free: 4.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004104/0.02603, allocations: 1.163 MB / 286.1 MB, free: 3.699 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.02605, allocations: 4 kB / 286.1 MB, free: 3.695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.02606, allocations: 7.984 kB / 286.1 MB, free: 3.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008021/0.03409, allocations: 2.099 MB / 288.2 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.03433, allocations: 63.88 kB / 288.3 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1485/0.1828, allocations: 4.892 MB / 293.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003433/0.1832, allocations: 30.41 kB / 293.2 MB, free: 21.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.1832, allocations: 18.03 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.0001395/0.1834, allocations: 177.9 kB / 293.4 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.33e-05/0.1834, allocations: 32.62 kB / 293.4 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.1835, allocations: 26.52 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.1835, allocations: 8.734 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1835, allocations: 1.156 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1835, allocations: 2.344 kB / 293.5 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006724/0.1841, allocations: 0.6148 MB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.1841, allocations: 1.781 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.1844, allocations: 45.88 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1844, allocations: 1.125 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.1844, allocations: 13.11 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.1844, allocations: 0.7031 kB / 294.1 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1844, allocations: 8.969 kB / 294.2 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.1848, allocations: 429 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.468e-05/0.1848, allocations: 26.22 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.1849, allocations: 5.844 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.1851, allocations: 19.23 kB / 294.6 MB, free: 21.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.692e-05/0.1851, allocations: 20.33 kB / 294.6 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.1851, allocations: 12.19 kB / 294.7 MB, free: 21.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001744/0.1853, allocations: 238.3 kB / 294.9 MB, free: 20.97 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1853, allocations: 1.25 kB / 294.9 MB, free: 20.97 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005222/0.1858, allocations: 100.7 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 0.0001185/0.186, allocations: 100.5 kB / 295.1 MB, free: 20.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.1873, allocations: 0.7274 MB / 295.8 MB, free: 20.51 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1874, allocations: 1.156 kB / 295.8 MB, free: 20.51 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.1875, allocations: 50.12 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.0004803/0.1879, allocations: 77.62 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.00152/0.1895, allocations: 0.5843 MB / 296.5 MB, free: 20.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.1896, allocations: 93.61 kB / 296.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000138/0.1897, allocations: 34.09 kB / 296.6 MB, free: 20.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.179e-05/0.1898, allocations: 38.69 kB / 296.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.713e-06/0.1898, allocations: 0 / 296.7 MB, free: 20.11 MB / 266.7 MB Notification: Performance of Templates: time 0.01473/0.2045, allocations: 10.35 MB / 307 MB, free: 16.37 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.6058772266842425]