Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.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_3.2.3_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.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 179.9 kB / 8.478 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.2 MB / 214.1 MB, free: 5.09 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009355/0.0009355, allocations: 87.27 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.731e-06/5.831e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06995/0.06997, allocations: 47.57 MB / 362.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2433/0.3133, allocations: 86.22 MB / 448.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002016/0.3136, allocations: 81.86 kB / 448.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.05056/0.3642, allocations: 21.92 MB / 470.8 MB, free: 1.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.513e-05/0.3642, allocations: 22.81 kB / 470.8 MB, free: 1.855 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.002255/0.3665, allocations: 1.172 MB / 472 MB, free: 1.051 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3666, allocations: 9.281 kB / 472 MB, free: 1.051 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002468/0.369, allocations: 393.7 kB / 472.4 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008557/0.3699, allocations: 0.5387 MB / 472.9 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.788e-05/0.37, allocations: 37.5 kB / 472.9 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.3701, allocations: 63.62 kB / 473 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001408/0.3715, allocations: 0.7849 MB / 473.8 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.3728, allocations: 0.8386 MB / 474.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.3729, allocations: 0 / 474.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.645e-05/0.373, allocations: 4 kB / 474.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.373, allocations: 31.92 kB / 474.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005514/0.3785, allocations: 3.769 MB / 478.4 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.3797, allocations: 0.7001 MB / 479.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005817/0.3803, allocations: 380.8 kB / 479.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.3804, allocations: 96.7 kB / 479.6 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005853/0.381, allocations: 432.3 kB / 480 MB, free: 11.35 MB / 330.7 MB Notification: Performance of pre-optimization done (n=86): time 2.385e-06/0.381, allocations: 0 / 480 MB, free: 11.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=86): time 0.001756/0.3827, allocations: 0.8087 MB / 480.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.442e-05/0.3828, allocations: 196.4 kB / 481 MB, free: 10.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003851/0.3832, allocations: 368.6 kB / 481.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.385e-05/0.3833, allocations: 25.7 kB / 481.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.3835, allocations: 382.8 kB / 481.8 MB, free: 9.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.3837, allocations: 267.7 kB / 482 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.3838, allocations: 0 / 482 MB, free: 9.633 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3839, allocations: 375.4 kB / 482.4 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003714/0.3843, allocations: 235.7 kB / 482.6 MB, free: 9.148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000514/0.3848, allocations: 484.2 kB / 483.1 MB, free: 8.688 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005855/0.3854, allocations: 304.7 kB / 483.4 MB, free: 8.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3854, allocations: 0 / 483.4 MB, free: 8.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001772/0.3872, allocations: 0.9515 MB / 484.3 MB, free: 7.781 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3872, allocations: 7.938 kB / 484.4 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.3872, allocations: 8 kB / 484.4 MB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009004/0.3881, allocations: 282 kB / 484.6 MB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006802/0.3888, allocations: 167.7 kB / 484.8 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.3935, allocations: 4.06 MB / 488.9 MB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000775/0.3943, allocations: 95.19 kB / 489 MB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.3943, allocations: 37.94 kB / 489 MB, free: 3.637 MB / 330.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.000242/0.3946, allocations: 136.1 kB / 489.1 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.3947, allocations: 67.16 kB / 489.2 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.3966, allocations: 0.8889 MB / 490.1 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.056e-06/0.3966, allocations: 8 kB / 490.1 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.3966, allocations: 11.91 kB / 490.1 MB, free: 2.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.3967, allocations: 7.922 kB / 490.1 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002735/0.3994, allocations: 1.682 MB / 491.8 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3994, allocations: 3.938 kB / 491.8 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005183/0.3999, allocations: 111.8 kB / 491.9 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008007/0.4008, allocations: 269.5 kB / 492.2 MB, free: 416 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.4008, allocations: 7.906 kB / 492.2 MB, free: 408 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004514/0.4053, allocations: 4.057 MB / 496.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4054, allocations: 0 / 496.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002203/0.4076, allocations: 1.267 MB / 497.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.408, allocations: 216.1 kB / 497.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.4081, allocations: 11.89 kB / 497.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005112/0.4086, allocations: 39.97 kB / 497.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.4088, allocations: 52.73 kB / 497.8 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-05/0.4088, allocations: 31.98 kB / 497.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000312/0.4091, allocations: 263.2 kB / 498.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001053/0.4102, allocations: 287 kB / 498.4 MB, free: 9.914 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.0002775/0.4105, allocations: 152.4 kB / 498.5 MB, free: 9.762 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.412, allocations: 0.9411 MB / 499.5 MB, free: 8.809 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4121, allocations: 4.062 kB / 499.5 MB, free: 8.805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000889/0.4129, allocations: 0.6021 MB / 0.4884 GB, free: 8.176 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.4134, allocations: 86.45 kB / 0.4884 GB, free: 8.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004643/0.4181, allocations: 1.706 MB / 0.4901 GB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007393/0.4188, allocations: 1.052 MB / 0.4911 GB, free: 5.301 MB / 346.7 MB Notification: Performance of SimCode: time 6.51e-07/0.4188, allocations: 192 / 0.4911 GB, free: 5.301 MB / 346.7 MB Notification: Performance of Templates: time 0.01957/0.4384, allocations: 12.01 MB / 0.5029 GB, free: 9.309 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches