Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.005481/0.005481, allocations: 173.2 kB / 7.446 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.65/1.65, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001698/0.001698, allocations: 127.8 kB / 217.7 MB, free: 8.152 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.357e-06/9.387e-06, allocations: 4 kB / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/0.08865, allocations: 38.75 MB / 300.5 MB, free: 3.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2633/0.3521, allocations: 67.05 MB / 367.5 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.3524, allocations: 68.09 kB / 367.6 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.01648/0.3689, allocations: 5.768 MB / 373.4 MB, free: 12.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.186e-05/0.369, allocations: 8 kB / 373.4 MB, free: 12.56 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001281/0.3703, allocations: 0.6309 MB / 374 MB, free: 11.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.3703, allocations: 12.03 kB / 374 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.3706, allocations: 51.34 kB / 374.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000587/0.3712, allocations: 299.1 kB / 374.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.3712, allocations: 8 kB / 374.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.3713, allocations: 20 kB / 374.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005004/0.3718, allocations: 209.3 kB / 374.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.3723, allocations: 291.1 kB / 374.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.3723, allocations: 0 / 374.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.763e-05/0.3724, allocations: 7.984 kB / 374.9 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.3724, allocations: 8 kB / 374.9 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.3747, allocations: 1.366 MB / 376.3 MB, free: 9.891 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.375, allocations: 183.1 kB / 376.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.3752, allocations: 92.86 kB / 376.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.3752, allocations: 0 / 376.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.3753, allocations: 41.91 kB / 376.6 MB, free: 9.648 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.864e-06/0.3753, allocations: 3.938 kB / 376.6 MB, free: 9.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005431/0.3758, allocations: 241 kB / 376.8 MB, free: 9.449 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.3759, allocations: 55.41 kB / 376.9 MB, free: 9.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.3762, allocations: 250.4 kB / 377.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.3762, allocations: 25.7 kB / 377.1 MB, free: 9.148 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3763, allocations: 178.8 kB / 377.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.048e-05/0.3764, allocations: 73.03 kB / 377.4 MB, free: 8.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.3764, allocations: 0 / 377.4 MB, free: 8.918 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3766, allocations: 343.6 kB / 377.7 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3767, allocations: 57.25 kB / 377.8 MB, free: 8.555 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.3769, allocations: 107.1 kB / 377.9 MB, free: 8.465 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001278/0.377, allocations: 60.78 kB / 377.9 MB, free: 8.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.377, allocations: 0 / 377.9 MB, free: 8.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000649/0.3777, allocations: 300 kB / 378.2 MB, free: 8.184 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.3777, allocations: 15.97 kB / 378.3 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3777, allocations: 0 / 378.3 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004985/0.3782, allocations: 114.5 kB / 378.4 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.3785, allocations: 31.92 kB / 378.4 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004638/0.3831, allocations: 3.982 MB / 382.4 MB, free: 3.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.3834, allocations: 31.8 kB / 382.4 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.3835, allocations: 11.19 kB / 382.4 MB, free: 3.895 MB / 266.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 0.0001432/0.3836, allocations: 108.9 kB / 382.5 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.667e-05/0.3837, allocations: 31.62 kB / 382.6 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.429e-05/0.3838, allocations: 36.27 kB / 382.6 MB, free: 3.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3838, allocations: 4 kB / 382.6 MB, free: 3.727 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3838, allocations: 4 kB / 382.6 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.3838, allocations: 3.906 kB / 382.6 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.3843, allocations: 315.7 kB / 382.9 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3843, allocations: 0 / 382.9 MB, free: 3.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.3845, allocations: 23.98 kB / 382.9 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003795/0.3848, allocations: 113.1 kB / 383.1 MB, free: 3.312 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.3849, allocations: 0 / 383.1 MB, free: 3.312 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003534/0.3884, allocations: 3.976 MB / 387 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.3884, allocations: 3.938 kB / 387 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005178/0.389, allocations: 348.6 kB / 387.4 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.3892, allocations: 138.2 kB / 387.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.218e-05/0.3892, allocations: 3.906 kB / 387.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.3895, allocations: 24.05 kB / 387.5 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.011e-05/0.3896, allocations: 11.97 kB / 387.5 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.3896, allocations: 11.5 kB / 387.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0002434/0.3899, allocations: 193.6 kB / 387.7 MB, free: 14.56 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005362/0.3904, allocations: 99.69 kB / 387.8 MB, free: 14.46 MB / 282.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.0001756/0.3906, allocations: 103.8 kB / 387.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007364/0.3914, allocations: 481.9 kB / 388.4 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3914, allocations: 4.125 kB / 388.4 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004109/0.3918, allocations: 401.1 kB / 388.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.3921, allocations: 45.89 kB / 388.9 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.3933, allocations: 397.4 kB / 389.2 MB, free: 13.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005/0.3938, allocations: 0.8158 MB / 390.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.3938, allocations: 0 / 390.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of Templates: time 0.009388/0.4032, allocations: 4.466 MB / 394.5 MB, free: 7.805 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1)