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.001121/0.001121, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001367/0.001367, allocations: 163.6 kB / 24.99 MB, free: 8.746 MB / 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.005/1.005, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.583e-06/1.583e-06, allocations: 0 / 273.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.097e-05, allocations: 2.312 kB / 273.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.006593/0.006614, allocations: 2.876 MB / 275.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004503/0.01112, allocations: 0.8766 MB / 276.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.01128, allocations: 7.938 kB / 276.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.01145, allocations: 51.44 kB / 276.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.01176, allocations: 131.1 kB / 277 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005709/0.01233, allocations: 227.5 kB / 277.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004919/0.01282, allocations: 0.5489 MB / 277.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.013, allocations: 72.48 kB / 277.8 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.0133, allocations: 299.4 kB / 278.1 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003264/0.01656, allocations: 179.4 kB / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.792e-05/0.01663, allocations: 48 kB / 278.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.575e-05/0.01669, allocations: 52 kB / 278.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.637e-05/0.01676, allocations: 103.6 kB / 278.5 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.01689, allocations: 147.6 kB / 278.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003813/0.01728, allocations: 334.8 kB / 279 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.01728, allocations: 3.984 kB / 279 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.01728, allocations: 0 / 279 MB, free: 11.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.01729, allocations: 0 / 279 MB, free: 11.87 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.001199/0.01848, allocations: 0.7725 MB / 279.8 MB, free: 11.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.01852, allocations: 8.031 kB / 279.8 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.01863, allocations: 60.7 kB / 279.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.01901, allocations: 275.4 kB / 280.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.01913, allocations: 131.9 kB / 280.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.378e-05/0.01918, allocations: 36.33 kB / 280.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003371/0.02255, allocations: 337.1 kB / 280.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.02257, allocations: 4.188 kB / 280.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.523e-05/0.02259, allocations: 16.12 kB / 280.6 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.0226, allocations: 8 kB / 280.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.02277, allocations: 85.22 kB / 280.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001956/0.02473, allocations: 1.565 MB / 282.3 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.02487, allocations: 90.17 kB / 282.4 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.027e-05/0.02492, allocations: 31.48 kB / 282.4 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.475e-05/0.02493, allocations: 4 kB / 282.4 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.02496, allocations: 37.39 kB / 282.4 MB, free: 8.168 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.02496, allocations: 0 / 282.4 MB, free: 8.168 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.004725/0.02969, allocations: 0.6721 MB / 283.1 MB, free: 7.426 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.02974, allocations: 110.8 kB / 283.2 MB, free: 7.293 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.03003, allocations: 354.2 kB / 283.6 MB, free: 6.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.03005, allocations: 25.7 kB / 283.6 MB, free: 6.898 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.0302, allocations: 263.1 kB / 283.8 MB, free: 6.637 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.787e-05/0.03023, allocations: 43.64 kB / 283.9 MB, free: 6.594 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.03036, allocations: 87.12 kB / 284 MB, free: 6.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003257/0.03068, allocations: 0.5117 MB / 284.5 MB, free: 5.977 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.03086, allocations: 71.94 kB / 284.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.03109, allocations: 222.2 kB / 284.8 MB, free: 5.629 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.03145, allocations: 260 kB / 285 MB, free: 5.324 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.03145, allocations: 0 / 285 MB, free: 5.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005296/0.03675, allocations: 1.16 MB / 286.2 MB, free: 4.148 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.03677, allocations: 6.656 kB / 286.2 MB, free: 4.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.03678, allocations: 4 kB / 286.2 MB, free: 4.141 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008154/0.04494, allocations: 2.102 MB / 288.3 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.04517, allocations: 59.94 kB / 288.3 MB, free: 1.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005851/0.05102, allocations: 4.9 MB / 293.2 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003001/0.05132, allocations: 27.98 kB / 293.3 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.05135, allocations: 27.97 kB / 293.3 MB, free: 12.77 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 (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.0001536/0.0515, allocations: 172.5 kB / 293.5 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.009e-05/0.05156, allocations: 39.69 kB / 293.5 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.903e-05/0.05159, allocations: 33.98 kB / 293.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.05159, allocations: 0 / 293.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.05159, allocations: 0 / 293.5 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.0516, allocations: 4 kB / 293.5 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006272/0.05222, allocations: 0.6136 MB / 294.2 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.05223, allocations: 8 kB / 294.2 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.0524, allocations: 43.89 kB / 294.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.0524, allocations: 0 / 294.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.05242, allocations: 11.98 kB / 294.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.05242, allocations: 64 / 294.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.05243, allocations: 4 kB / 294.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000358/0.05278, allocations: 426.8 kB / 294.6 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.546e-05/0.05282, allocations: 31.8 kB / 294.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.05285, allocations: 0 / 294.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.05302, allocations: 28.02 kB / 294.7 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.05307, allocations: 15.91 kB / 294.7 MB, free: 11.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.05309, allocations: 11.98 kB / 294.7 MB, free: 11.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001497/0.05324, allocations: 239 kB / 295 MB, free: 11.03 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05324, allocations: 0 / 295 MB, free: 11.03 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005413/0.05378, allocations: 100 kB / 295.1 MB, free: 10.93 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.0001246/0.0539, allocations: 99.25 kB / 295.2 MB, free: 10.83 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.05506, allocations: 0.7247 MB / 295.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.05506, allocations: 0 / 295.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.05622, allocations: 47.83 kB / 295.9 MB, free: 10.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.05661, allocations: 93.8 kB / 296 MB, free: 9.934 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.05781, allocations: 0.581 MB / 296.6 MB, free: 9.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.254e-05/0.05788, allocations: 96.61 kB / 296.7 MB, free: 9.203 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.05801, allocations: 34.95 kB / 296.7 MB, free: 9.172 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.017e-05/0.0581, allocations: 36.47 kB / 296.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of SimCode: time 2.023e-06/0.0581, allocations: 0 / 296.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of Templates: time 0.104/0.1621, allocations: 10.33 MB / 307.1 MB, free: 42.58 MB / 282.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.2874850160442293]