Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [: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.001516/0.001516, allocations: 185 kB / 8.131 MB, free: 2.086 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.347/1.347, allocations: 194.2 MB / 202.8 MB, free: 8.668 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.001917/0.001916, allocations: 119.9 kB / 247.7 MB, free: 6.406 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.085e-06/8.105e-06, allocations: 4 kB / 297.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07484/0.07487, allocations: 44.48 MB / 342 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2053/0.2802, allocations: 72.32 MB / 414.4 MB, free: 22.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.2804, allocations: 67.16 kB / 414.4 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01486/0.2953, allocations: 5.929 MB / 420.4 MB, free: 17.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.861e-05/0.2954, allocations: 8 kB / 420.4 MB, free: 17.88 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0007311/0.2961, allocations: 0.6259 MB / 421 MB, free: 17.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2961, allocations: 8.781 kB / 421 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.789e-05/0.2962, allocations: 47.44 kB / 421.1 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.2965, allocations: 298.8 kB / 421.3 MB, free: 16.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.2966, allocations: 12 kB / 421.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.2966, allocations: 16 kB / 421.4 MB, free: 16.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003762/0.297, allocations: 217.2 kB / 421.6 MB, free: 16.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003931/0.2974, allocations: 287.7 kB / 421.9 MB, free: 16.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2974, allocations: 0 / 421.9 MB, free: 16.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.2974, allocations: 1.5 kB / 421.9 MB, free: 16.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.2975, allocations: 8 kB / 421.9 MB, free: 16.47 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.2991, allocations: 1.37 MB / 423.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.2994, allocations: 181.2 kB / 423.4 MB, free: 15.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.2995, allocations: 84.42 kB / 423.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.2995, allocations: 0 / 423.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.2996, allocations: 48.52 kB / 423.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.2996, allocations: 0 / 423.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.000429/0.3, allocations: 240.8 kB / 423.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.3, allocations: 62.41 kB / 423.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.3003, allocations: 243.5 kB / 424.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.3003, allocations: 25.7 kB / 424.1 MB, free: 14.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.857e-05/0.3003, allocations: 178.1 kB / 424.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.785e-05/0.3004, allocations: 75.27 kB / 424.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.242e-05/0.3004, allocations: 0 / 424.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.562e-05/0.3005, allocations: 337.3 kB / 424.7 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.3006, allocations: 57.62 kB / 424.7 MB, free: 13.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.3007, allocations: 102.7 kB / 424.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.3008, allocations: 73.47 kB / 424.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3008, allocations: 3.906 kB / 424.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005317/0.3014, allocations: 304.3 kB / 425.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.3014, allocations: 4 kB / 425.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3014, allocations: 0 / 425.2 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.3018, allocations: 110.8 kB / 425.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.302, allocations: 33.42 kB / 425.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002579/0.3046, allocations: 3.985 MB / 429.3 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.3048, allocations: 33.36 kB / 429.4 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.3048, allocations: 7.312 kB / 429.4 MB, free: 9.25 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 8.414e-05/0.3049, allocations: 112.7 kB / 429.5 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.647e-05/0.305, allocations: 31.62 kB / 429.5 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.442e-05/0.305, allocations: 28.88 kB / 429.6 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3051, allocations: 12.08 kB / 429.6 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.3051, allocations: 0 / 429.6 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3051, allocations: 0 / 429.6 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003082/0.3054, allocations: 317.1 kB / 429.9 MB, free: 8.785 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3054, allocations: 3.906 kB / 429.9 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.3055, allocations: 27.92 kB / 429.9 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000318/0.3059, allocations: 116.2 kB / 430 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.3059, allocations: 0 / 430 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.308, allocations: 3.974 MB / 434 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.308, allocations: 0 / 434 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003477/0.3084, allocations: 349.2 kB / 434.3 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.3085, allocations: 126.3 kB / 434.5 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.23e-05/0.3085, allocations: 0 / 434.5 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3088, allocations: 29.44 kB / 434.5 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.169e-05/0.3089, allocations: 15.17 kB / 434.5 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.3089, allocations: 13.05 kB / 434.5 MB, free: 4.082 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001341/0.309, allocations: 185.2 kB / 434.7 MB, free: 3.938 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004122/0.3094, allocations: 107.6 kB / 434.8 MB, free: 3.832 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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001078/0.3096, allocations: 99.25 kB / 434.9 MB, free: 3.727 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005535/0.3101, allocations: 484.8 kB / 435.4 MB, free: 3.285 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3101, allocations: 4.062 kB / 435.4 MB, free: 3.281 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.3104, allocations: 403.4 kB / 435.8 MB, free: 2.895 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.3107, allocations: 39.61 kB / 435.8 MB, free: 2.871 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008204/0.3115, allocations: 391.8 kB / 436.2 MB, free: 2.504 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.3118, allocations: 0.8219 MB / 437 MB, free: 1.656 MB / 314.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3118, allocations: 4 kB / 437 MB, free: 1.652 MB / 314.7 MB Notification: Performance of Templates: time 0.008165/0.32, allocations: 4.472 MB / 441.5 MB, free: 13.25 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1)