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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001178/0.001178, allocations: 205.5 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000877/0.0008771, allocations: 86.09 kB / 286.3 MB, free: 5.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.829e-06/9.949e-06, allocations: 4 kB / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08722, allocations: 51.47 MB / 394.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2474/0.3347, allocations: 81.71 MB / 476.3 MB, free: 11.17 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.3349, allocations: 76.14 kB / 476.4 MB, free: 11.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02116/0.3561, allocations: 7.009 MB / 483.4 MB, free: 5.844 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.52e-05/0.3562, allocations: 8 kB / 483.4 MB, free: 5.836 MB / 346.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.001214/0.3574, allocations: 0.6213 MB / 484 MB, free: 5.195 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3574, allocations: 8.031 kB / 484 MB, free: 5.188 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.3576, allocations: 39.53 kB / 484.1 MB, free: 5.148 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007241/0.3583, allocations: 374.9 kB / 484.4 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.992e-05/0.3584, allocations: 71.89 kB / 484.5 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.3585, allocations: 16 kB / 484.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002485/0.3588, allocations: 129.9 kB / 484.7 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.3591, allocations: 237.4 kB / 484.9 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.3591, allocations: 7.844 kB / 484.9 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.3592, allocations: 9.953 kB / 484.9 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.3592, allocations: 5.188 kB / 484.9 MB, free: 4.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.3607, allocations: 1.285 MB / 486.2 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.3609, allocations: 89.84 kB / 486.3 MB, free: 3.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.097e-05/0.3609, allocations: 40.89 kB / 486.3 MB, free: 3.094 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.361, allocations: 3.984 kB / 486.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.361, allocations: 38.38 kB / 486.4 MB, free: 3.047 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.644e-06/0.361, allocations: 0 / 486.4 MB, free: 3.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0023/0.3633, allocations: 0.8966 MB / 487.3 MB, free: 2.172 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.3633, allocations: 114 kB / 487.4 MB, free: 2.039 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.3636, allocations: 272.6 kB / 487.6 MB, free: 1.816 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.3637, allocations: 25.7 kB / 487.7 MB, free: 1.785 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.785e-05/0.3637, allocations: 178.1 kB / 487.8 MB, free: 1.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.484e-05/0.3638, allocations: 45.8 kB / 487.9 MB, free: 1.586 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.3638, allocations: 4 kB / 487.9 MB, free: 1.582 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.764e-05/0.3639, allocations: 339.9 kB / 488.2 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.3641, allocations: 131.9 kB / 488.3 MB, free: 1.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.3643, allocations: 216.9 kB / 488.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.3646, allocations: 144.8 kB / 488.7 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3646, allocations: 12.02 kB / 488.7 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01128/0.3759, allocations: 1.286 MB / 490 MB, free: 15.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.3759, allocations: 6.156 kB / 490 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.376, allocations: 4 kB / 490 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01487/0.3908, allocations: 1.258 MB / 491.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005089/0.3914, allocations: 79.3 kB / 491.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/0.4032, allocations: 4.735 MB / 496.1 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006558/0.4039, allocations: 39.97 kB / 496.1 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.4039, allocations: 23.03 kB / 496.1 MB, free: 10.27 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 1,4 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001399/0.4041, allocations: 112.9 kB / 496.3 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.593e-05/0.4042, allocations: 27.62 kB / 496.3 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.841e-05/0.4042, allocations: 28.83 kB / 496.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.4043, allocations: 0 / 496.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.4043, allocations: 0 / 496.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4043, allocations: 4 kB / 496.3 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008639/0.4051, allocations: 0.6626 MB / 497 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4052, allocations: 0 / 497 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/0.4056, allocations: 51.94 kB / 497 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.4056, allocations: 4 kB / 497 MB, free: 9.469 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.564e-05/0.4056, allocations: 7.984 kB / 497 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4056, allocations: 3.906 kB / 497 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4056, allocations: 3.938 kB / 497 MB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000566/0.4062, allocations: 471 kB / 497.5 MB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.92e-05/0.4063, allocations: 101.2 kB / 497.6 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.4063, allocations: 8.047 kB / 497.6 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/0.4068, allocations: 31.89 kB / 497.6 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.4068, allocations: 14.78 kB / 497.7 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.4069, allocations: 11.98 kB / 497.7 MB, free: 8.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002056/0.4071, allocations: 204 kB / 497.9 MB, free: 8.738 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005627/0.4077, allocations: 100.1 kB / 498 MB, free: 8.641 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator1.y,integrator2.y) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001689/0.4078, allocations: 101.8 kB / 498.1 MB, free: 8.535 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.4097, allocations: 0.625 MB / 498.7 MB, free: 8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4097, allocations: 0 / 498.7 MB, free: 8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.4099, allocations: 77.41 kB / 498.8 MB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.4103, allocations: 56.67 kB / 498.8 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.4117, allocations: 470 kB / 499.3 MB, free: 7.465 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005533/0.4123, allocations: 0.818 MB / 0.4884 GB, free: 6.621 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4123, allocations: 4 kB / 0.4884 GB, free: 6.617 MB / 362.7 MB Notification: Performance of Templates: time 0.01404/0.4264, allocations: 8.571 MB / 0.4967 GB, free: 14.11 MB / 378.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)