Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.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.2+maint.om/package.mo): time 0.002024/0.002024, allocations: 189.2 kB / 8.135 MB, free: 2.215 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.133/1.133, allocations: 194.2 MB / 202.8 MB, free: 8.828 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.001718/0.001718, allocations: 123 kB / 247.7 MB, free: 6.277 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.28e-06/5.32e-06, allocations: 0 / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07095/0.07097, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1911/0.2621, allocations: 81.5 MB / 423.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.2624, allocations: 77.89 kB / 423.6 MB, free: 13.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.05164/0.3141, allocations: 21.66 MB / 445.3 MB, free: 12.2 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.067e-05/0.3141, allocations: 16 kB / 445.3 MB, free: 12.19 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.00256/0.3167, allocations: 1.161 MB / 446.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.3168, allocations: 8.031 kB / 446.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002472/0.3192, allocations: 395.2 kB / 446.9 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008397/0.3201, allocations: 0.5336 MB / 447.4 MB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.378e-05/0.3202, allocations: 32 kB / 447.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.3203, allocations: 60 kB / 447.5 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001489/0.3218, allocations: 0.7798 MB / 448.3 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.3233, allocations: 0.8319 MB / 449.1 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.785e-05/0.3233, allocations: 11.58 kB / 449.1 MB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.459e-05/0.3234, allocations: 4 kB / 449.1 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.697e-05/0.3234, allocations: 24 kB / 449.1 MB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005713/0.3291, allocations: 3.767 MB / 452.9 MB, free: 5.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.3304, allocations: 0.6893 MB / 453.6 MB, free: 5.289 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006317/0.331, allocations: 384.2 kB / 454 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.3311, allocations: 93.75 kB / 454.1 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006757/0.3318, allocations: 427.2 kB / 454.5 MB, free: 4.598 MB / 330.7 MB Notification: Performance of pre-optimization done (n=86): time 3.287e-06/0.3318, allocations: 0 / 454.5 MB, free: 4.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=86): time 0.00186/0.3337, allocations: 0.8113 MB / 455.3 MB, free: 3.988 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.775e-05/0.3338, allocations: 196.7 kB / 455.5 MB, free: 3.754 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.3342, allocations: 357.4 kB / 455.8 MB, free: 3.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.937e-05/0.3343, allocations: 33.14 kB / 455.9 MB, free: 3.445 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002672/0.3346, allocations: 374.4 kB / 456.2 MB, free: 3.109 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/0.3348, allocations: 275 kB / 456.5 MB, free: 2.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.3349, allocations: 0 / 456.5 MB, free: 2.871 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.335, allocations: 369.1 kB / 456.9 MB, free: 2.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004377/0.3355, allocations: 237.9 kB / 457.1 MB, free: 2.395 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005466/0.336, allocations: 480.1 kB / 457.6 MB, free: 1.941 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000659/0.3367, allocations: 303.9 kB / 457.9 MB, free: 1.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.3367, allocations: 7.984 kB / 457.9 MB, free: 1.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001945/0.3386, allocations: 0.9536 MB / 458.8 MB, free: 1.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3387, allocations: 4 kB / 458.8 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3387, allocations: 8 kB / 458.8 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009069/0.3396, allocations: 278.4 kB / 459.1 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007008/0.3403, allocations: 167.7 kB / 459.3 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005003/0.3453, allocations: 4.068 MB / 463.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000778/0.3462, allocations: 95.66 kB / 463.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.21e-05/0.3462, allocations: 40 kB / 463.5 MB, free: 12.64 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 18,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.000236/0.3465, allocations: 140.5 kB / 463.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.3466, allocations: 71.33 kB / 463.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002013/0.3486, allocations: 0.8901 MB / 464.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.427e-06/0.3486, allocations: 11.94 kB / 464.6 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.3487, allocations: 8 kB / 464.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.3487, allocations: 3.984 kB / 464.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002865/0.3515, allocations: 1.691 MB / 466.3 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.3516, allocations: 4 kB / 466.3 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005642/0.3521, allocations: 103.9 kB / 466.4 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008694/0.353, allocations: 266.6 kB / 466.7 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.257e-05/0.3531, allocations: 7.984 kB / 466.7 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004744/0.3578, allocations: 4.05 MB / 470.7 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3579, allocations: 0 / 470.7 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002238/0.3601, allocations: 1.279 MB / 472 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.3604, allocations: 208 kB / 472.2 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.3606, allocations: 8 kB / 472.2 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005294/0.3611, allocations: 43.91 kB / 472.2 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.3612, allocations: 52.69 kB / 472.3 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.187e-05/0.3613, allocations: 24 kB / 472.3 MB, free: 3.438 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003197/0.3616, allocations: 271.2 kB / 472.6 MB, free: 3.172 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009883/0.3626, allocations: 279.2 kB / 472.9 MB, free: 2.898 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 {2 8,4 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002621/0.3629, allocations: 155 kB / 473 MB, free: 2.738 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3645, allocations: 0.9338 MB / 473.9 MB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.3645, allocations: 4 kB / 473.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009684/0.3655, allocations: 0.6147 MB / 474.6 MB, free: 1.148 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.3659, allocations: 77.14 kB / 474.6 MB, free: 1.074 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004561/0.3705, allocations: 1.664 MB / 476.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000803/0.3713, allocations: 1.056 MB / 477.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3713, allocations: 0 / 477.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of Templates: time 0.02031/0.3917, allocations: 11.97 MB / 489.3 MB, free: 2.355 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)