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") [: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.002348/0.002347, allocations: 175.2 kB / 8.152 MB, free: 2.211 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.726/1.726, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001256/0.001256, allocations: 90.47 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.007e-06/9.188e-06, allocations: 0 / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2509, allocations: 47.55 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.3894, allocations: 86.24 MB / 448.1 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.3898, allocations: 82.02 kB / 448.2 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.09444/0.4843, allocations: 21.92 MB / 470.1 MB, free: 9.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.818e-05/0.4844, allocations: 24 kB / 470.1 MB, free: 9.684 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.00435/0.4888, allocations: 1.173 MB / 471.3 MB, free: 8.457 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.4888, allocations: 8.031 kB / 471.3 MB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003893/0.4927, allocations: 387 kB / 471.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.4945, allocations: 0.5373 MB / 472.2 MB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.022e-05/0.4946, allocations: 39.91 kB / 472.2 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/0.4949, allocations: 64 kB / 472.3 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003063/0.498, allocations: 0.785 MB / 473.1 MB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002915/0.5009, allocations: 0.8366 MB / 473.9 MB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.767e-05/0.501, allocations: 3.938 kB / 473.9 MB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.5012, allocations: 0.5625 kB / 473.9 MB, free: 5.711 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.438e-05/0.5012, allocations: 28 kB / 474 MB, free: 5.684 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01083/0.5121, allocations: 3.776 MB / 477.7 MB, free: 1.691 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002243/0.5144, allocations: 0.6973 MB / 478.4 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.5156, allocations: 372 kB / 478.8 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001842/0.5158, allocations: 101.7 kB / 478.9 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.517, allocations: 438.5 kB / 479.3 MB, free: 44 kB / 362.7 MB Notification: Performance of pre-optimization done (n=86): time 4.488e-06/0.517, allocations: 0 / 479.3 MB, free: 44 kB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.003325/0.5204, allocations: 0.8122 MB / 480.1 MB, free: 15.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.5206, allocations: 196.7 kB / 480.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007655/0.5213, allocations: 365 kB / 480.7 MB, free: 14.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/0.5215, allocations: 29.7 kB / 480.7 MB, free: 14.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/0.5219, allocations: 417.8 kB / 481.1 MB, free: 14.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/0.5223, allocations: 272 kB / 481.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-05/0.5223, allocations: 0 / 481.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.5225, allocations: 346.7 kB / 481.7 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007613/0.5233, allocations: 238 kB / 482 MB, free: 13.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.5243, allocations: 482.6 kB / 482.4 MB, free: 12.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.5254, allocations: 303 kB / 482.7 MB, free: 12.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.5255, allocations: 0 / 482.7 MB, free: 12.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003336/0.5288, allocations: 0.9274 MB / 483.6 MB, free: 11.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.5289, allocations: 4 kB / 483.7 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/0.5289, allocations: 8 kB / 483.7 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.5304, allocations: 267.9 kB / 483.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.5319, allocations: 167.6 kB / 484.1 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008464/0.5404, allocations: 4.069 MB / 488.2 MB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.5416, allocations: 87.25 kB / 488.2 MB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.5418, allocations: 43.98 kB / 488.3 MB, free: 6.641 MB / 378.7 MB 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.0002717/0.5421, allocations: 51.14 kB / 488.3 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.5423, allocations: 71.16 kB / 488.4 MB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003563/0.5459, allocations: 0.8864 MB / 489.3 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.438e-05/0.546, allocations: 8 kB / 489.3 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.546, allocations: 4 kB / 489.3 MB, free: 5.598 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.307e-05/0.546, allocations: 3.984 kB / 489.3 MB, free: 5.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005506/0.5516, allocations: 1.707 MB / 491 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/0.5516, allocations: 7.984 kB / 491 MB, free: 3.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.5528, allocations: 115.8 kB / 491.1 MB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/0.5545, allocations: 257.5 kB / 491.4 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001794/0.5547, allocations: 4 kB / 491.4 MB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008166/0.5629, allocations: 4.058 MB / 495.4 MB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.563, allocations: 4.062 kB / 495.4 MB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004143/0.5671, allocations: 1.271 MB / 496.7 MB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006138/0.5678, allocations: 216.1 kB / 496.9 MB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.568, allocations: 4 kB / 496.9 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009727/0.569, allocations: 43.97 kB / 497 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.5692, allocations: 52.61 kB / 497 MB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-05/0.5693, allocations: 24.08 kB / 497.1 MB, free: 13.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0005303/0.5698, allocations: 279.1 kB / 497.3 MB, free: 13.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001562/0.5714, allocations: 275.2 kB / 497.6 MB, free: 12.95 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,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.0004311/0.5719, allocations: 155.1 kB / 497.7 MB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002895/0.5748, allocations: 0.9328 MB / 498.7 MB, free: 11.85 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/0.5749, allocations: 0 / 498.7 MB, free: 11.85 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.5768, allocations: 0.6219 MB / 499.3 MB, free: 11.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008667/0.5777, allocations: 69.59 kB / 499.4 MB, free: 11.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008056/0.5858, allocations: 1.744 MB / 0.4894 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001225/0.587, allocations: 1.072 MB / 0.4904 GB, free: 8.258 MB / 394.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5871, allocations: 0 / 0.4904 GB, free: 8.258 MB / 394.7 MB Notification: Performance of Templates: time 0.2119/0.799, allocations: 17.07 MB / 0.5071 GB, free: 92.12 MB / 394.7 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