Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [: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 3.2.2+maint.om/package.mo): time 0.001076/0.001076, allocations: 195.9 kB / 8.138 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.103/1.103, allocations: 194.2 MB / 202.8 MB, free: 8.684 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001961/0.001961, allocations: 120.8 kB / 247.8 MB, free: 6.332 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.911e-06/5.931e-06, allocations: 0 / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07636/0.07638, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1968/0.2732, allocations: 72.38 MB / 414.4 MB, free: 22.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001678/0.2734, allocations: 64.3 kB / 414.5 MB, free: 22.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01145/0.2849, allocations: 4.617 MB / 419.1 MB, free: 18.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.2849, allocations: 8 kB / 419.1 MB, free: 18.92 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0006512/0.2856, allocations: 0.5656 MB / 419.7 MB, free: 18.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2856, allocations: 8.031 kB / 419.7 MB, free: 18.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.645e-05/0.2857, allocations: 43.53 kB / 419.7 MB, free: 18.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.286, allocations: 267.3 kB / 420 MB, free: 18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.286, allocations: 8 kB / 420 MB, free: 18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/0.2861, allocations: 18.41 kB / 420 MB, free: 17.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003064/0.2864, allocations: 162.5 kB / 420.2 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.2867, allocations: 194 kB / 420.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.2867, allocations: 3.984 kB / 420.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.2868, allocations: 0 / 420.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.2868, allocations: 11.91 kB / 420.4 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.2882, allocations: 0.9276 MB / 421.3 MB, free: 16.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.2885, allocations: 175.9 kB / 421.5 MB, free: 16.76 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.2886, allocations: 91.8 kB / 421.6 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.2887, allocations: 8.172 kB / 421.6 MB, free: 16.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.689e-05/0.2887, allocations: 46.3 kB / 421.6 MB, free: 16.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.714e-06/0.2887, allocations: 0 / 421.6 MB, free: 16.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004632/0.2892, allocations: 222.4 kB / 421.8 MB, free: 16.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/0.2892, allocations: 55.34 kB / 421.9 MB, free: 16.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.2894, allocations: 198.4 kB / 422.1 MB, free: 16.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.2894, allocations: 28.83 kB / 422.1 MB, free: 16.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.2895, allocations: 175.4 kB / 422.3 MB, free: 16.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.834e-05/0.2896, allocations: 65.39 kB / 422.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.15e-05/0.2896, allocations: 0 / 422.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.698e-05/0.2896, allocations: 329.6 kB / 422.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.924e-05/0.2897, allocations: 56.34 kB / 422.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.653e-05/0.2898, allocations: 78.64 kB / 422.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.2899, allocations: 67.91 kB / 422.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2899, allocations: 0 / 422.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003909/0.2903, allocations: 259.5 kB / 423.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.2904, allocations: 8 kB / 423.1 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.298e-05/0.2904, allocations: 3.438 kB / 423.1 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003193/0.2908, allocations: 79.98 kB / 423.2 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.291, allocations: 43.91 kB / 423.3 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/0.2926, allocations: 2.691 MB / 426 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.2928, allocations: 23.83 kB / 426 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.2928, allocations: 11.88 kB / 426 MB, free: 12.41 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * 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: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.908e-05/0.2929, allocations: 108.7 kB / 426.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.98e-05/0.2929, allocations: 28.59 kB / 426.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.293, allocations: 31.98 kB / 426.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.293, allocations: 3.938 kB / 426.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.293, allocations: 4 kB / 426.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.293, allocations: 0 / 426.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000627/0.2936, allocations: 0.5825 MB / 426.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.2937, allocations: 0 / 426.7 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.2938, allocations: 24.98 kB / 426.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001659/0.294, allocations: 80.36 kB / 426.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.294, allocations: 7.891 kB / 426.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.2955, allocations: 2.682 MB / 429.5 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.2955, allocations: 3.938 kB / 429.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003502/0.2958, allocations: 322.8 kB / 429.9 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.296, allocations: 107.9 kB / 430 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.281e-05/0.296, allocations: 0 / 430 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.2963, allocations: 35.97 kB / 430 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.2963, allocations: 11.98 kB / 430 MB, free: 8.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.463e-05/0.2963, allocations: 6.75 kB / 430 MB, free: 8.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001048/0.2964, allocations: 160.8 kB / 430.2 MB, free: 8.277 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00036/0.2968, allocations: 83.75 kB / 430.3 MB, free: 8.195 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001109/0.2969, allocations: 99.25 kB / 430.4 MB, free: 8.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004509/0.2974, allocations: 376.8 kB / 430.7 MB, free: 7.758 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2974, allocations: 0 / 430.7 MB, free: 7.758 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002423/0.2976, allocations: 292 kB / 431 MB, free: 7.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.2979, allocations: 30.17 kB / 431 MB, free: 7.461 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005784/0.2985, allocations: 315.4 kB / 431.3 MB, free: 7.172 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.2987, allocations: 0.7903 MB / 432.1 MB, free: 6.355 MB / 314.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2987, allocations: 0 / 432.1 MB, free: 6.355 MB / 314.7 MB Notification: Performance of Templates: time 0.005457/0.3042, allocations: 3.149 MB / 435.3 MB, free: 3.285 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1)