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") [: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 4.0.0+maint.om/package.mo): time 0.0009734/0.0009735, allocations: 182.4 kB / 8.137 MB, free: 2.184 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.217/1.217, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009581/0.000958, allocations: 100.6 kB / 280.8 MB, free: 1.316 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.251e-06/6.342e-06, allocations: 0 / 336.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2001, allocations: 50.39 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09877/0.2989, allocations: 88.52 MB / 475.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.2992, allocations: 87.94 kB / 475.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.05379/0.353, allocations: 21.52 MB / 497 MB, free: 8.613 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.71e-05/0.3531, allocations: 16 kB / 497 MB, free: 8.598 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.002302/0.3554, allocations: 1.166 MB / 498.2 MB, free: 7.379 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3554, allocations: 8.031 kB / 498.2 MB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/0.3571, allocations: 310.4 kB / 498.5 MB, free: 7.066 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008131/0.358, allocations: 0.5334 MB / 499.1 MB, free: 6.496 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.358, allocations: 32 kB / 499.1 MB, free: 6.465 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.3581, allocations: 59.98 kB / 499.1 MB, free: 6.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001357/0.3595, allocations: 0.7264 MB / 499.9 MB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.3609, allocations: 0.8051 MB / 0.4889 GB, free: 4.852 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.361, allocations: 7.906 kB / 0.489 GB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.583e-05/0.3611, allocations: 7.984 kB / 0.489 GB, free: 4.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.3611, allocations: 27.94 kB / 0.489 GB, free: 4.809 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004985/0.3661, allocations: 3.398 MB / 0.4923 GB, free: 1.254 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3672, allocations: 0.6779 MB / 0.493 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005955/0.3678, allocations: 375.9 kB / 0.4933 GB, free: 184 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.368, allocations: 93.75 kB / 0.4934 GB, free: 72 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1173/0.4852, allocations: 419.5 kB / 0.4938 GB, free: 127.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.757e-06/0.4853, allocations: 1.719 kB / 0.4938 GB, free: 127.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.001643/0.4869, allocations: 0.7836 MB / 0.4946 GB, free: 127.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.125e-05/0.487, allocations: 199.7 kB / 0.4948 GB, free: 127.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.4874, allocations: 343.6 kB / 0.4951 GB, free: 127 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.4875, allocations: 29.45 kB / 0.4951 GB, free: 127 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.4877, allocations: 360.8 kB / 0.4955 GB, free: 126.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.4878, allocations: 268.3 kB / 0.4957 GB, free: 126.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.619e-05/0.4878, allocations: 0 / 0.4957 GB, free: 126.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.451e-05/0.4879, allocations: 369 kB / 0.4961 GB, free: 126.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003353/0.4883, allocations: 225.2 kB / 0.4963 GB, free: 126.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004237/0.4887, allocations: 442.9 kB / 0.4967 GB, free: 126.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005065/0.4892, allocations: 296 kB / 0.497 GB, free: 126.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4892, allocations: 0 / 0.497 GB, free: 126.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001516/0.4907, allocations: 0.8865 MB / 0.4979 GB, free: 126.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.4908, allocations: 3.438 kB / 0.4979 GB, free: 126.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.4908, allocations: 12.03 kB / 0.4979 GB, free: 126.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008465/0.4916, allocations: 274.3 kB / 0.4981 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005985/0.4923, allocations: 151.4 kB / 0.4983 GB, free: 126 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003864/0.4961, allocations: 4.067 MB / 0.5023 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006829/0.4968, allocations: 83.38 kB / 0.5023 GB, free: 123.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.164e-05/0.4969, allocations: 38.77 kB / 0.5024 GB, free: 123.5 MB / 378.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 (81): * Single equations (assignments): 79 * 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.0001936/0.4971, allocations: 135.8 kB / 0.5025 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.055e-05/0.4972, allocations: 65.66 kB / 0.5026 GB, free: 123.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.4988, allocations: 0.8575 MB / 0.5034 GB, free: 123.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4988, allocations: 9.125 kB / 0.5034 GB, free: 123.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.4988, allocations: 0 / 0.5034 GB, free: 123.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.4988, allocations: 11.14 kB / 0.5034 GB, free: 123.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.5011, allocations: 1.623 MB / 0.505 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.5011, allocations: 2.25 kB / 0.505 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004953/0.5016, allocations: 104.5 kB / 0.5051 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007536/0.5024, allocations: 268.4 kB / 0.5054 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.5024, allocations: 7.156 kB / 0.5054 GB, free: 122.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003677/0.5061, allocations: 4.063 MB / 0.5093 GB, free: 120.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5061, allocations: 4.188 kB / 0.5093 GB, free: 120.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001978/0.5081, allocations: 1.253 MB / 0.5106 GB, free: 120.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002792/0.5084, allocations: 212.8 kB / 0.5108 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.5085, allocations: 7.188 kB / 0.5108 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005276/0.5091, allocations: 42.38 kB / 0.5108 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.5092, allocations: 53.95 kB / 0.5109 GB, free: 120 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-05/0.5093, allocations: 27.47 kB / 0.5109 GB, free: 120 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002389/0.5095, allocations: 260.5 kB / 0.5111 GB, free: 119.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008855/0.5104, allocations: 280.4 kB / 0.5114 GB, free: 119.9 MB / 378.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 (56): * Single equations (assignments): 51 * 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.0002705/0.5107, allocations: 162.4 kB / 0.5116 GB, free: 119.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.512, allocations: 0.9088 MB / 0.5125 GB, free: 119.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.5121, allocations: 0 / 0.5125 GB, free: 119.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007806/0.5128, allocations: 0.6112 MB / 0.513 GB, free: 119.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.5133, allocations: 73.67 kB / 0.5131 GB, free: 119.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.5156, allocations: 1.162 MB / 0.5143 GB, free: 119 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005318/0.5162, allocations: 1.047 MB / 0.5153 GB, free: 118.3 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5162, allocations: 0 / 0.5153 GB, free: 118.3 MB / 378.7 MB Notification: Performance of Templates: time 0.01859/0.5348, allocations: 11.8 MB / 0.5268 GB, free: 117.9 MB / 378.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