Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 193.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.653/1.653, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 94.23 kB / 299.9 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002586, allocations: 8 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2973, allocations: 51.41 MB / 412.1 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002692/0.3001, allocations: 2.458 MB / 414.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3013, allocations: 1.003 MB / 415.5 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.3015, allocations: 7.938 kB / 415.5 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.3017, allocations: 35.69 kB / 415.6 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.302, allocations: 99.38 kB / 415.7 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002904/0.3023, allocations: 208.8 kB / 415.9 MB, free: 22.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003561/0.3026, allocations: 0.503 MB / 416.4 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.3028, allocations: 108.3 kB / 416.5 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.303, allocations: 159.3 kB / 416.6 MB, free: 21.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.3032, allocations: 199.1 kB / 416.8 MB, free: 21.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.562e-05/0.3033, allocations: 20 kB / 416.8 MB, free: 21.08 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.064e-05/0.3033, allocations: 20 kB / 416.9 MB, free: 21.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.706e-05/0.3034, allocations: 75.7 kB / 416.9 MB, free: 20.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.3036, allocations: 196.7 kB / 417.1 MB, free: 20.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003501/0.3039, allocations: 459.8 kB / 417.6 MB, free: 20.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3039, allocations: 0 / 417.6 MB, free: 20.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.304, allocations: 0 / 417.6 MB, free: 20.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.304, allocations: 4 kB / 417.6 MB, free: 20.34 MB / 298.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.001417/0.3054, allocations: 0.686 MB / 418.3 MB, free: 19.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.3055, allocations: 8.031 kB / 418.3 MB, free: 19.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.182e-05/0.3056, allocations: 48.41 kB / 418.3 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.306, allocations: 323.4 kB / 418.6 MB, free: 19.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.3061, allocations: 84.52 kB / 418.7 MB, free: 19.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.857e-05/0.3062, allocations: 28.38 kB / 418.7 MB, free: 19.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004367/0.3066, allocations: 287.9 kB / 419 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.3066, allocations: 8 kB / 419 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.3067, allocations: 8 kB / 419 MB, free: 18.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.3067, allocations: 4 kB / 419 MB, free: 18.74 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003228/0.307, allocations: 181.9 kB / 419.2 MB, free: 18.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.3094, allocations: 1.476 MB / 420.7 MB, free: 17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.3096, allocations: 113.2 kB / 420.8 MB, free: 16.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.155e-05/0.3097, allocations: 49.83 kB / 420.9 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.3098, allocations: 3.984 kB / 420.9 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.3098, allocations: 38.56 kB / 420.9 MB, free: 16.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.173e-06/0.3098, allocations: 0 / 420.9 MB, free: 16.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002847/0.3126, allocations: 1.129 MB / 422 MB, free: 15.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.3127, allocations: 110.7 kB / 422.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.313, allocations: 316.5 kB / 422.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.3131, allocations: 29.7 kB / 422.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.3132, allocations: 204 kB / 422.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.3132, allocations: 55.28 kB / 422.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.388e-05/0.3133, allocations: 8 kB / 422.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.896e-05/0.3134, allocations: 338.8 kB / 423.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.3137, allocations: 171.7 kB / 423.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003355/0.314, allocations: 244 kB / 423.5 MB, free: 14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005819/0.3146, allocations: 373.9 kB / 423.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3146, allocations: 4 kB / 423.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008273/0.3229, allocations: 1.345 MB / 425.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3229, allocations: 8 kB / 425.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.323, allocations: 0 / 425.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009682/0.3327, allocations: 1.168 MB / 426.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/0.3331, allocations: 79.88 kB / 426.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009451/0.3426, allocations: 4.931 MB / 431.4 MB, free: 5.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005612/0.3432, allocations: 40.08 kB / 431.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/0.3432, allocations: 23.91 kB / 431.4 MB, free: 5.711 MB / 298.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.0001963/0.3434, allocations: 149.7 kB / 431.6 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.061e-05/0.3435, allocations: 31.56 kB / 431.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.254e-05/0.3436, allocations: 26.61 kB / 431.6 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.3436, allocations: 3.938 kB / 431.6 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3436, allocations: 8 kB / 431.6 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3436, allocations: 3.984 kB / 431.7 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009424/0.3445, allocations: 0.763 MB / 432.4 MB, free: 4.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3446, allocations: 3.984 kB / 432.4 MB, free: 4.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003381/0.3449, allocations: 51.95 kB / 432.5 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3449, allocations: 0 / 432.5 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.3449, allocations: 8.047 kB / 432.5 MB, free: 4.602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3449, allocations: 4 kB / 432.5 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.345, allocations: 0 / 432.5 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000714/0.3457, allocations: 0.5412 MB / 433 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.3458, allocations: 104.8 kB / 433.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.3458, allocations: 8 kB / 433.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.3462, allocations: 28.05 kB / 433.2 MB, free: 3.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.266e-05/0.3463, allocations: 15.97 kB / 433.2 MB, free: 3.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.3463, allocations: 7.984 kB / 433.2 MB, free: 3.859 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001906/0.3465, allocations: 223.1 kB / 433.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3465, allocations: 0 / 433.4 MB, free: 3.641 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004591/0.347, allocations: 103.9 kB / 433.5 MB, free: 3.539 MB / 298.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.0001288/0.3471, allocations: 111.2 kB / 433.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001772/0.3489, allocations: 0.7317 MB / 434.3 MB, free: 2.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.3489, allocations: 0 / 434.3 MB, free: 2.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.3491, allocations: 112.1 kB / 434.5 MB, free: 2.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.3497, allocations: 68.41 kB / 434.5 MB, free: 2.488 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.3508, allocations: 0.7299 MB / 435.2 MB, free: 1.734 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.351, allocations: 0.7794 MB / 436 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.00019/0.3512, allocations: 30.28 kB / 436.1 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.596e-05/0.3513, allocations: 27.41 kB / 436.1 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3513, allocations: 0 / 436.1 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of Templates: time 0.01369/0.365, allocations: 8.337 MB / 444.4 MB, free: 8.547 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile (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=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)