Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier.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.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier") [: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.003489/0.003489, allocations: 174.1 kB / 7.447 MB, free: 2.508 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.363/1.363, allocations: 170.6 MB / 178.4 MB, free: 15.38 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.001737/0.001737, allocations: 124.3 kB / 217.7 MB, free: 8.148 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.638e-06/9.658e-06, allocations: 4 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08149/0.08151, allocations: 38.76 MB / 300.5 MB, free: 3.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2608/0.3424, allocations: 68.64 MB / 369.1 MB, free: 136 kB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.3426, allocations: 66.47 kB / 369.2 MB, free: 104 kB / 250.7 MB Notification: Performance of FrontEnd: time 0.02271/0.3653, allocations: 8.038 MB / 377.2 MB, free: 9.422 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.274e-05/0.3654, allocations: 12 kB / 377.3 MB, free: 9.41 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001376/0.3668, allocations: 0.7814 MB / 378 MB, free: 8.621 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.3669, allocations: 8.031 kB / 378 MB, free: 8.613 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.367, allocations: 75.16 kB / 378.1 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005805/0.3676, allocations: 356.4 kB / 378.5 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.3677, allocations: 19.98 kB / 378.5 MB, free: 8.168 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.3678, allocations: 35.31 kB / 378.5 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007162/0.3685, allocations: 377.2 kB / 378.9 MB, free: 7.906 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008563/0.3694, allocations: 444.7 kB / 379.3 MB, free: 7.551 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.3694, allocations: 3.938 kB / 379.3 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.3695, allocations: 0 / 379.3 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.094e-05/0.3695, allocations: 12 kB / 379.3 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003377/0.3729, allocations: 1.979 MB / 381.3 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.3733, allocations: 241.1 kB / 381.6 MB, free: 5.703 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004907/0.3738, allocations: 351 kB / 381.9 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.072e-05/0.3739, allocations: 8.5 kB / 381.9 MB, free: 5.457 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.3739, allocations: 46.23 kB / 381.9 MB, free: 5.406 MB / 266.7 MB Notification: Performance of pre-optimization done (n=60): time 2.716e-06/0.3739, allocations: 0 / 381.9 MB, free: 5.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002423/0.3763, allocations: 1.141 MB / 383.1 MB, free: 4.457 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.3764, allocations: 60.66 kB / 383.1 MB, free: 4.387 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/0.3768, allocations: 276.8 kB / 383.4 MB, free: 4.168 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.3769, allocations: 25.7 kB / 383.4 MB, free: 4.137 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.3771, allocations: 189.1 kB / 383.6 MB, free: 3.961 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.3772, allocations: 195.1 kB / 383.8 MB, free: 3.793 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.947e-05/0.3773, allocations: 0 / 383.8 MB, free: 3.793 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3774, allocations: 351.5 kB / 384.2 MB, free: 3.457 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.3777, allocations: 140.6 kB / 384.3 MB, free: 3.375 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.3779, allocations: 188.3 kB / 384.5 MB, free: 3.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002565/0.3782, allocations: 154.1 kB / 384.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.3782, allocations: 0 / 384.6 MB, free: 3.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00105/0.3792, allocations: 0.5812 MB / 385.2 MB, free: 2.703 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3793, allocations: 4 kB / 385.2 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3793, allocations: 3.906 kB / 385.2 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007311/0.38, allocations: 241.8 kB / 385.5 MB, free: 2.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.3804, allocations: 67.34 kB / 385.5 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006255/0.3866, allocations: 6.392 MB / 391.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.3871, allocations: 11.98 kB / 391.9 MB, free: 12.15 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.3871, allocations: 15.81 kB / 391.9 MB, free: 12.14 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001576/0.3873, allocations: 114.6 kB / 392.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/0.3874, allocations: 47.44 kB / 392.1 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.3875, allocations: 59.3 kB / 392.2 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3875, allocations: 4 kB / 392.2 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.3875, allocations: 4 kB / 392.2 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3875, allocations: 3.984 kB / 392.2 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.3894, allocations: 1.165 MB / 393.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.3895, allocations: 0 / 393.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003132/0.3898, allocations: 59.91 kB / 393.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006883/0.3905, allocations: 247.5 kB / 393.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.3905, allocations: 3.984 kB / 393.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006684/0.3972, allocations: 6.402 MB / 400 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.3973, allocations: 0 / 400 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001572/0.3989, allocations: 0.9074 MB / 400.9 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003326/0.3992, allocations: 158.7 kB / 401.1 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.452e-05/0.3993, allocations: 0 / 401.1 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.3996, allocations: 11.98 kB / 401.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.3998, allocations: 38.44 kB / 401.2 MB, free: 3.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.3998, allocations: 21.66 kB / 401.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0002725/0.4001, allocations: 221.2 kB / 401.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000999/0.4011, allocations: 148 kB / 401.5 MB, free: 3.254 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002306/0.4013, allocations: 107.1 kB / 401.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.4028, allocations: 0.8601 MB / 402.5 MB, free: 2.391 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4029, allocations: 4 kB / 402.5 MB, free: 2.387 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.4039, allocations: 0.6915 MB / 403.2 MB, free: 1.75 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000415/0.4043, allocations: 63.02 kB / 403.3 MB, free: 1.703 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.4067, allocations: 0.9536 MB / 404.2 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000647/0.4073, allocations: 0.9018 MB / 405.1 MB, free: 15.88 MB / 298.7 MB Notification: Performance of SimCode: time 5.82e-07/0.4073, allocations: 0 / 405.1 MB, free: 15.88 MB / 298.7 MB Notification: Performance of Templates: time 0.01483/0.4222, allocations: 7.645 MB / 412.8 MB, free: 8.23 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1)