Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|voltageQS.pin_p.reference.gamma|iAC.mean1.y|iAC.mean2.y|iDC2.mean.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.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 trunk/package.mo): time 0.00102/0.00102, allocations: 200.1 kB / 8.536 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001188/0.001188, allocations: 98.38 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.157e-06/9.197e-06, allocations: 4 kB / 343.1 MB, free: 8.785 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.09817, allocations: 51.48 MB / 394.6 MB, free: 5.254 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2803/0.3785, allocations: 89.39 MB / 484 MB, free: 3.953 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.3788, allocations: 78.45 kB / 484.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.05439/0.4332, allocations: 22.26 MB / 0.4945 GB, free: 1.941 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.219e-05/0.4333, allocations: 24 kB / 0.4945 GB, free: 1.918 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.002423/0.4357, allocations: 1.167 MB / 0.4956 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.4358, allocations: 12.03 kB / 0.4957 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002024/0.4378, allocations: 358.2 kB / 0.496 GB, free: 452 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008556/0.4387, allocations: 0.5327 MB / 0.4965 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.667e-05/0.4387, allocations: 32 kB / 0.4965 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.4389, allocations: 68.81 kB / 0.4966 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001352/0.4402, allocations: 0.7204 MB / 0.4973 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.4416, allocations: 0.8089 MB / 0.4981 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.4416, allocations: 3.906 kB / 0.4981 GB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.218e-05/0.4417, allocations: 15.34 kB / 0.4981 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.4418, allocations: 24 kB / 0.4981 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005362/0.4471, allocations: 3.482 MB / 0.5015 GB, free: 11.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.4483, allocations: 0.6698 MB / 0.5022 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006024/0.4489, allocations: 368 kB / 0.5026 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001679/0.4491, allocations: 182.8 kB / 0.5027 GB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006162/0.4497, allocations: 423.9 kB / 0.5031 GB, free: 9.793 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.387e-06/0.4497, allocations: 0 / 0.5031 GB, free: 9.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001706/0.4515, allocations: 0.7772 MB / 0.5039 GB, free: 9.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.756e-05/0.4516, allocations: 208.7 kB / 0.5041 GB, free: 8.758 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004484/0.452, allocations: 358.4 kB / 0.5044 GB, free: 8.402 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.371e-05/0.4521, allocations: 25.7 kB / 0.5045 GB, free: 8.371 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000237/0.4523, allocations: 363.5 kB / 0.5048 GB, free: 8.008 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.4525, allocations: 260 kB / 0.5051 GB, free: 7.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.4526, allocations: 4 kB / 0.5051 GB, free: 7.746 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4528, allocations: 374.8 kB / 0.5054 GB, free: 7.371 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.4531, allocations: 226 kB / 0.5056 GB, free: 7.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.4537, allocations: 441.5 kB / 0.506 GB, free: 6.633 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005642/0.4542, allocations: 291 kB / 0.5063 GB, free: 6.352 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4543, allocations: 0 / 0.5063 GB, free: 6.352 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001738/0.456, allocations: 0.892 MB / 0.5072 GB, free: 5.445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.456, allocations: 8 kB / 0.5072 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.456, allocations: 4 kB / 0.5072 GB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009087/0.457, allocations: 282.3 kB / 0.5075 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/0.4576, allocations: 151.8 kB / 0.5076 GB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004941/0.4626, allocations: 4.075 MB / 0.5116 GB, free: 0.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007789/0.4634, allocations: 83.27 kB / 0.5117 GB, free: 0.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.786e-05/0.4635, allocations: 35.98 kB / 0.5117 GB, free: 0.5898 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: rectifierQS.vQS.im:VARIABLE(unit = "V" ) "Real part of complex voltage" type: Real rectifierQS.vQS.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,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 (81): * Single equations (assignments): 79 * 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.0002975/0.4638, allocations: 140.6 kB / 0.5118 GB, free: 456 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.4639, allocations: 63.25 kB / 0.5119 GB, free: 392 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.4657, allocations: 0.8548 MB / 0.5127 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.4657, allocations: 8 kB / 0.5128 GB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4657, allocations: 8 kB / 0.5128 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.4658, allocations: 11.92 kB / 0.5128 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002804/0.4686, allocations: 1.629 MB / 0.5144 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4686, allocations: 4 kB / 0.5144 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.4691, allocations: 107.8 kB / 0.5145 GB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007977/0.4699, allocations: 265.5 kB / 0.5147 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.063e-05/0.47, allocations: 8 kB / 0.5147 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004685/0.4747, allocations: 4.061 MB / 0.5187 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4747, allocations: 0 / 0.5187 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002218/0.4769, allocations: 1.255 MB / 0.5199 GB, free: 7.855 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/0.4773, allocations: 216 kB / 0.5201 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.4774, allocations: 8 kB / 0.5201 GB, free: 7.617 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004853/0.4779, allocations: 39.97 kB / 0.5202 GB, free: 7.578 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.478, allocations: 48.7 kB / 0.5202 GB, free: 7.531 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.194e-05/0.4781, allocations: 23.98 kB / 0.5202 GB, free: 7.508 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003401/0.4784, allocations: 271.2 kB / 0.5205 GB, free: 7.242 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001094/0.4795, allocations: 291.2 kB / 0.5208 GB, free: 6.957 MB / 394.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_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * 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.0003622/0.4799, allocations: 164 kB / 0.5209 GB, free: 6.785 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.4815, allocations: 0.9158 MB / 0.5218 GB, free: 5.852 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4815, allocations: 0 / 0.5218 GB, free: 5.852 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009284/0.4825, allocations: 0.6031 MB / 0.5224 GB, free: 5.227 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.483, allocations: 79.64 kB / 0.5225 GB, free: 5.156 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002886/0.4859, allocations: 1.173 MB / 0.5236 GB, free: 3.961 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007057/0.4866, allocations: 1.056 MB / 0.5247 GB, free: 2.875 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4866, allocations: 0 / 0.5247 GB, free: 2.875 MB / 394.7 MB Notification: Performance of Templates: time 0.02055/0.5071, allocations: 11.91 MB / 0.5363 GB, free: 7.148 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches