Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009924/0.0009927, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000918/0.000918, allocations: 86.02 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.783e-05/1.787e-05, allocations: 3.938 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1125, allocations: 50.43 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3829/0.4954, allocations: 88.58 MB / 476.1 MB, free: 6.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.4957, allocations: 79.95 kB / 476.1 MB, free: 6.176 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05507/0.5508, allocations: 21.79 MB / 497.9 MB, free: 208 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.5509, allocations: 0 / 497.9 MB, free: 208 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.661e-05/0.5509, allocations: 23.98 kB / 497.9 MB, free: 184 kB / 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.002445/0.5534, allocations: 1.13 MB / 499.1 MB, free: 15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.5535, allocations: 15.97 kB / 499.1 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001654/0.5551, allocations: 294.5 kB / 499.4 MB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000908/0.556, allocations: 0.5355 MB / 499.9 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.5561, allocations: 35.95 kB / 500 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.5562, allocations: 64 kB / 0.4883 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001311/0.5576, allocations: 0.7186 MB / 0.489 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.559, allocations: 0.8089 MB / 0.4898 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/0.559, allocations: 4 kB / 0.4898 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.5591, allocations: 4 kB / 0.4898 GB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.986e-05/0.5591, allocations: 24 kB / 0.4898 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005037/0.5642, allocations: 3.398 MB / 0.4931 GB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.5661, allocations: 1.83 MB / 0.4949 GB, free: 6.809 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005366/0.5667, allocations: 359.9 kB / 0.4953 GB, free: 6.453 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.5668, allocations: 97.86 kB / 0.4954 GB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006449/0.5675, allocations: 432 kB / 0.4958 GB, free: 5.887 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.806e-06/0.5675, allocations: 0 / 0.4958 GB, free: 5.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001795/0.5693, allocations: 0.8098 MB / 0.4966 GB, free: 5.062 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.5694, allocations: 200.7 kB / 0.4968 GB, free: 4.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004427/0.5699, allocations: 349.1 kB / 0.4971 GB, free: 4.477 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.094e-05/0.5699, allocations: 29.7 kB / 0.4971 GB, free: 4.441 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003152/0.5702, allocations: 411.6 kB / 0.4975 GB, free: 4.031 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.5705, allocations: 268 kB / 0.4978 GB, free: 3.766 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.578e-05/0.5705, allocations: 0 / 0.4978 GB, free: 3.766 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.5707, allocations: 370.7 kB / 0.4981 GB, free: 3.395 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003511/0.571, allocations: 218.6 kB / 0.4983 GB, free: 3.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000502/0.5715, allocations: 436 kB / 0.4987 GB, free: 2.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006519/0.5722, allocations: 324.3 kB / 0.499 GB, free: 2.355 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.5722, allocations: 4 kB / 0.4991 GB, free: 2.352 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001716/0.574, allocations: 0.9078 MB / 0.4999 GB, free: 1.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.574, allocations: 5.406 kB / 0.4999 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.574, allocations: 11.95 kB / 0.5 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007998/0.5748, allocations: 259.7 kB / 0.5002 GB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005694/0.5754, allocations: 147.7 kB / 0.5003 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00466/0.5801, allocations: 4.19 MB / 0.5044 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007316/0.5808, allocations: 95.08 kB / 0.5045 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.663e-05/0.5809, allocations: 36 kB / 0.5046 GB, free: 12.46 MB / 394.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 (82): * Single equations (assignments): 80 * 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 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002828/0.5812, allocations: 136.8 kB / 0.5047 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.5813, allocations: 67.23 kB / 0.5048 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001936/0.5833, allocations: 0.8718 MB / 0.5056 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.5833, allocations: 8 kB / 0.5056 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.5833, allocations: 8.031 kB / 0.5056 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.5833, allocations: 7.969 kB / 0.5056 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002778/0.5861, allocations: 1.704 MB / 0.5073 GB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.5861, allocations: 4 kB / 0.5073 GB, free: 9.578 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004491/0.5866, allocations: 99.88 kB / 0.5074 GB, free: 9.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000706/0.5873, allocations: 249.5 kB / 0.5076 GB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.801e-05/0.5874, allocations: 11.95 kB / 0.5076 GB, free: 9.219 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00438/0.5917, allocations: 4.175 MB / 0.5117 GB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5918, allocations: 0 / 0.5117 GB, free: 4.809 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/0.594, allocations: 1.26 MB / 0.513 GB, free: 3.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000302/0.5943, allocations: 212.3 kB / 0.5132 GB, free: 3.293 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.596e-05/0.5944, allocations: 4 kB / 0.5132 GB, free: 3.289 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004513/0.5948, allocations: 35.97 kB / 0.5132 GB, free: 3.254 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.595, allocations: 68.62 kB / 0.5133 GB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-05/0.5951, allocations: 27.98 kB / 0.5133 GB, free: 3.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003234/0.5954, allocations: 271 kB / 0.5135 GB, free: 2.895 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5954, allocations: 0 / 0.5135 GB, free: 2.895 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001141/0.5965, allocations: 279.1 kB / 0.5138 GB, free: 2.621 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 (57): * Single equations (assignments): 52 * 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 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003021/0.5969, allocations: 159.1 kB / 0.514 GB, free: 2.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.5984, allocations: 0.9361 MB / 0.5149 GB, free: 1.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.5984, allocations: 0 / 0.5149 GB, free: 1.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009002/0.5993, allocations: 0.6607 MB / 0.5155 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.5998, allocations: 66 kB / 0.5156 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.6022, allocations: 1.138 MB / 0.5167 GB, free: 15.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/0.6028, allocations: 1.014 MB / 0.5177 GB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003599/0.6032, allocations: 73.14 kB / 0.5178 GB, free: 14.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001343/0.6033, allocations: 47.42 kB / 0.5178 GB, free: 14.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.703e-06/0.6033, allocations: 0 / 0.5178 GB, free: 14.43 MB / 410.7 MB Notification: Performance of Templates: time 0.01812/0.6214, allocations: 10.05 MB / 0.5276 GB, free: 4.492 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches