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.0009524/0.0009524, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.599/1.599, allocations: 221.3 MB / 235.5 MB, free: 2.879 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.0009321/0.0009323, allocations: 88.05 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.673e-05/2.676e-05, allocations: 4 kB / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.09701, allocations: 50.42 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3193/0.4164, allocations: 89.25 MB / 483.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.4166, allocations: 79.78 kB / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05485/0.4715, allocations: 22.04 MB / 0.4938 GB, free: 7.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4715, allocations: 0 / 0.4938 GB, free: 7.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.025e-05/0.4716, allocations: 24 kB / 0.4938 GB, free: 7.93 MB / 378.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.002226/0.4738, allocations: 1.134 MB / 0.4949 GB, free: 6.746 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.4739, allocations: 11.97 kB / 0.4949 GB, free: 6.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/0.4754, allocations: 294.5 kB / 0.4952 GB, free: 6.445 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008489/0.4763, allocations: 0.5294 MB / 0.4957 GB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-05/0.4764, allocations: 77.95 kB / 0.4958 GB, free: 5.801 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.4765, allocations: 100 kB / 0.4959 GB, free: 5.703 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.4782, allocations: 0.9574 MB / 0.4968 GB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/0.4782, allocations: 3.938 kB / 0.4968 GB, free: 4.711 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.848e-05/0.4783, allocations: 48 kB / 0.4969 GB, free: 4.664 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.4783, allocations: 24 kB / 0.4969 GB, free: 4.641 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.4798, allocations: 0.7811 MB / 0.4977 GB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006322/0.4861, allocations: 3.585 MB / 0.5012 GB, free: 104 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/0.4886, allocations: 1.857 MB / 0.503 GB, free: 14 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007567/0.4894, allocations: 425.5 kB / 0.5034 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.4896, allocations: 89.89 kB / 0.5035 GB, free: 13.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007081/0.4903, allocations: 461.5 kB / 0.5039 GB, free: 13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=84): time 2.855e-06/0.4903, allocations: 0 / 0.5039 GB, free: 13 MB / 394.7 MB Notification: Performance of matching and sorting (n=84): time 0.001706/0.492, allocations: 0.8294 MB / 0.5047 GB, free: 12.15 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.808e-05/0.4921, allocations: 200.6 kB / 0.5049 GB, free: 11.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004865/0.4926, allocations: 399.7 kB / 0.5053 GB, free: 11.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.043e-05/0.4927, allocations: 41.7 kB / 0.5053 GB, free: 11.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002973/0.493, allocations: 415.7 kB / 0.5057 GB, free: 11.06 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002002/0.4932, allocations: 276 kB / 0.506 GB, free: 10.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.4933, allocations: 16 kB / 0.506 GB, free: 10.77 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4934, allocations: 370.8 kB / 0.5064 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003889/0.4938, allocations: 234 kB / 0.5066 GB, free: 10.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005179/0.4943, allocations: 443.5 kB / 0.507 GB, free: 9.648 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004728/0.4948, allocations: 301.9 kB / 0.5073 GB, free: 9.352 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4948, allocations: 0 / 0.5073 GB, free: 9.352 MB / 394.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001645/0.4965, allocations: 0.9546 MB / 0.5082 GB, free: 8.383 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.4965, allocations: 8 kB / 0.5082 GB, free: 8.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.4965, allocations: 4 kB / 0.5082 GB, free: 8.371 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008356/0.4974, allocations: 270.8 kB / 0.5085 GB, free: 8.105 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005661/0.4979, allocations: 151.7 kB / 0.5086 GB, free: 7.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005227/0.5032, allocations: 4.373 MB / 0.5129 GB, free: 3.312 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008546/0.5041, allocations: 103.2 kB / 0.513 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.929e-05/0.5041, allocations: 32 kB / 0.513 GB, free: 3.18 MB / 394.7 MB 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.000228/0.5044, allocations: 164.7 kB / 0.5132 GB, free: 3.012 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.5045, allocations: 63.25 kB / 0.5132 GB, free: 2.949 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/0.5063, allocations: 0.9185 MB / 0.5141 GB, free: 2.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.5063, allocations: 8 kB / 0.5142 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.5063, allocations: 0 / 0.5142 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.5063, allocations: 4.172 kB / 0.5142 GB, free: 2.008 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002902/0.5092, allocations: 1.869 MB / 0.516 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.5092, allocations: 3.938 kB / 0.516 GB, free: 64 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.5097, allocations: 115.8 kB / 0.5161 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007265/0.5104, allocations: 253.1 kB / 0.5163 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/0.5105, allocations: 23.98 kB / 0.5164 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004629/0.5151, allocations: 4.329 MB / 0.5206 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.106e-06/0.5152, allocations: 12 kB / 0.5206 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.5173, allocations: 1.283 MB / 0.5219 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003609/0.5177, allocations: 216.3 kB / 0.5221 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/0.5178, allocations: 19.98 kB / 0.5221 GB, free: 9.488 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004576/0.5182, allocations: 51.97 kB / 0.5221 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.5184, allocations: 76.61 kB / 0.5222 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.5185, allocations: 23.98 kB / 0.5222 GB, free: 9.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003753/0.5189, allocations: 305.6 kB / 0.5225 GB, free: 9.043 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5189, allocations: 0 / 0.5225 GB, free: 9.043 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001164/0.52, allocations: 323.2 kB / 0.5228 GB, free: 8.727 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.000322/0.5204, allocations: 175 kB / 0.523 GB, free: 8.547 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.5221, allocations: 1.018 MB / 0.524 GB, free: 7.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5221, allocations: 1.25 kB / 0.524 GB, free: 7.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009426/0.5231, allocations: 0.683 MB / 0.5247 GB, free: 6.793 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004948/0.5236, allocations: 106.5 kB / 0.5248 GB, free: 6.688 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002309/0.5259, allocations: 1.201 MB / 0.5259 GB, free: 5.457 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005517/0.5265, allocations: 1.014 MB / 0.5269 GB, free: 4.418 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003646/0.5268, allocations: 77.34 kB / 0.527 GB, free: 4.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.527, allocations: 51.42 kB / 0.527 GB, free: 4.289 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.527, allocations: 0 / 0.527 GB, free: 4.289 MB / 410.7 MB Notification: Performance of Templates: time 0.01855/0.5455, allocations: 11.21 MB / 0.538 GB, free: 9.207 MB / 426.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