Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002101/0.002101, allocations: 179.4 kB / 8.363 MB, free: 0.7148 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.984/1.984, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 84.2 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.332e-05/2.346e-05, allocations: 4 kB / 314.8 MB, free: 9.137 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.338, allocations: 47.56 MB / 362.3 MB, free: 45.81 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1708/0.5089, allocations: 86.31 MB / 448.6 MB, free: 15.97 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004068/0.5093, allocations: 83.95 kB / 448.7 MB, free: 15.89 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09851/0.6079, allocations: 22.2 MB / 470.9 MB, free: 9.582 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6079, allocations: 0 / 470.9 MB, free: 9.582 MB / 363.1 MB Notification: Performance of Transformations before backend: time 6.369e-05/0.608, allocations: 16 kB / 470.9 MB, free: 9.566 MB / 363.1 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.004377/0.6124, allocations: 1.152 MB / 472.1 MB, free: 8.363 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.6125, allocations: 8.031 kB / 472.1 MB, free: 8.355 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003555/0.6161, allocations: 370.4 kB / 472.5 MB, free: 7.992 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.6178, allocations: 0.5492 MB / 473 MB, free: 7.398 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.1e-05/0.6179, allocations: 32 kB / 473 MB, free: 7.367 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002941/0.6182, allocations: 60 kB / 473.1 MB, free: 7.309 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002802/0.621, allocations: 0.785 MB / 473.9 MB, free: 6.52 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002792/0.6239, allocations: 0.8366 MB / 474.7 MB, free: 5.637 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.129e-05/0.624, allocations: 4 kB / 474.7 MB, free: 5.633 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.6241, allocations: 3.984 kB / 474.7 MB, free: 5.629 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.624e-05/0.6242, allocations: 27.95 kB / 474.8 MB, free: 5.602 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.6348, allocations: 3.618 MB / 478.4 MB, free: 1.809 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004225/0.6391, allocations: 2.416 MB / 480.8 MB, free: 15.04 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001196/0.6403, allocations: 368 kB / 481.2 MB, free: 14.68 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000199/0.6405, allocations: 89.89 kB / 481.2 MB, free: 14.57 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.6417, allocations: 436 kB / 481.7 MB, free: 14.11 MB / 379.1 MB Notification: Performance of pre-optimization done (n=86): time 7.584e-06/0.6418, allocations: 0 / 481.7 MB, free: 14.11 MB / 379.1 MB Notification: Performance of matching and sorting (n=86): time 0.003163/0.6449, allocations: 0.8215 MB / 482.5 MB, free: 13.28 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.6451, allocations: 196.7 kB / 482.7 MB, free: 13.04 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007611/0.6459, allocations: 365 kB / 483 MB, free: 12.68 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.6461, allocations: 29.7 kB / 483.1 MB, free: 12.64 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000493/0.6466, allocations: 469.9 kB / 483.5 MB, free: 12.18 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004345/0.6471, allocations: 283.9 kB / 483.8 MB, free: 11.9 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.158e-05/0.6472, allocations: 0 / 483.8 MB, free: 11.9 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.6474, allocations: 346.8 kB / 484.1 MB, free: 11.55 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007242/0.6481, allocations: 223.5 kB / 484.4 MB, free: 11.34 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009052/0.649, allocations: 473.2 kB / 484.8 MB, free: 10.77 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.6503, allocations: 344.2 kB / 485.2 MB, free: 10.43 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/0.6504, allocations: 4 kB / 485.2 MB, free: 10.43 MB / 379.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00349/0.6539, allocations: 0.9396 MB / 486.1 MB, free: 9.477 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/0.654, allocations: 8 kB / 486.1 MB, free: 9.469 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.654, allocations: 11.95 kB / 486.1 MB, free: 9.457 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001484/0.6555, allocations: 252.7 kB / 486.4 MB, free: 9.207 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.6569, allocations: 171.7 kB / 486.5 MB, free: 9.039 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007975/0.6649, allocations: 4.189 MB / 490.7 MB, free: 4.621 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.6662, allocations: 99.09 kB / 490.8 MB, free: 4.523 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.6664, allocations: 36 kB / 490.9 MB, free: 4.488 MB / 379.1 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 (90): * Single equations (assignments): 88 * 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.0003793/0.6668, allocations: 140.9 kB / 491 MB, free: 4.344 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002241/0.667, allocations: 68.12 kB / 491.1 MB, free: 4.277 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/0.6703, allocations: 0.8759 MB / 491.9 MB, free: 3.387 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/0.6704, allocations: 8 kB / 491.9 MB, free: 3.379 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6704, allocations: 0 / 491.9 MB, free: 3.379 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.286e-05/0.6705, allocations: 7.984 kB / 491.9 MB, free: 3.371 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005483/0.676, allocations: 1.752 MB / 493.7 MB, free: 1.559 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.676, allocations: 0 / 493.7 MB, free: 1.559 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009837/0.677, allocations: 111.8 kB / 493.8 MB, free: 1.449 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/0.6784, allocations: 249.9 kB / 494.1 MB, free: 1.199 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/0.6786, allocations: 7.984 kB / 494.1 MB, free: 1.191 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00778/0.6864, allocations: 4.174 MB / 498.2 MB, free: 12.79 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.116e-06/0.6865, allocations: 3.984 kB / 498.2 MB, free: 12.78 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004007/0.6905, allocations: 1.256 MB / 499.5 MB, free: 11.5 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006289/0.6912, allocations: 216.3 kB / 499.7 MB, free: 11.27 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.6914, allocations: 8 kB / 499.7 MB, free: 11.26 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009024/0.6923, allocations: 31.97 kB / 499.7 MB, free: 11.23 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002828/0.6926, allocations: 76.66 kB / 499.8 MB, free: 11.15 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-05/0.6927, allocations: 24 kB / 499.8 MB, free: 11.13 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0005197/0.6932, allocations: 278.9 kB / 0.4884 GB, free: 10.86 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6932, allocations: 0 / 0.4884 GB, free: 10.86 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001785/0.695, allocations: 287.2 kB / 0.4887 GB, free: 10.57 MB / 395.1 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 (59): * Single equations (assignments): 54 * 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.0004715/0.6955, allocations: 149.4 kB / 0.4888 GB, free: 10.42 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002848/0.6984, allocations: 0.9725 MB / 0.4898 GB, free: 9.426 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/0.6985, allocations: 0 / 0.4898 GB, free: 9.426 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001963/0.7005, allocations: 0.668 MB / 0.4904 GB, free: 8.738 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009508/0.7015, allocations: 72.86 kB / 0.4905 GB, free: 8.668 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00732/0.7088, allocations: 1.725 MB / 0.4922 GB, free: 6.906 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008947/0.7098, allocations: 1.014 MB / 0.4932 GB, free: 5.863 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003681/0.7102, allocations: 55.42 kB / 0.4932 GB, free: 5.809 MB / 395.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7102, allocations: 0 / 0.4932 GB, free: 5.809 MB / 395.1 MB Notification: Performance of Templates: time 0.3064/1.017, allocations: 16.53 MB / 0.5093 GB, free: 108.5 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches