Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.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.MultiPhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|cDC1.v|cDC2.v|supplyL.inductor.2..i|supplyL.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier") translateModel(Modelica.Electrical.MultiPhase.Examples.Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|cDC1.v|cDC2.v|supplyL.inductor.2..i|supplyL.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.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.001625/0.001625, allocations: 176.2 kB / 8.151 MB, free: 2.215 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.632/1.632, allocations: 205.2 MB / 213.8 MB, free: 13.95 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.001265/0.001264, allocations: 91.5 kB / 261.8 MB, free: 13.65 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.267e-05/1.276e-05, allocations: 8 kB / 314.3 MB, free: 9.074 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2297, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.3607, allocations: 84.5 MB / 446.3 MB, free: 1.574 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/0.361, allocations: 78.25 kB / 446.4 MB, free: 1.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1231/0.4841, allocations: 31.55 MB / 478 MB, free: 1.848 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001555/0.4844, allocations: 55.94 kB / 478 MB, free: 1.793 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: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.006602/0.491, allocations: 1.962 MB / 480 MB, free: 15.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.491, allocations: 8.031 kB / 480 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001014/0.4921, allocations: 233.3 kB / 480.2 MB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003783/0.4959, allocations: 1.235 MB / 481.4 MB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/0.496, allocations: 68 kB / 481.5 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004477/0.4965, allocations: 120 kB / 481.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006072/0.5026, allocations: 1.804 MB / 483.4 MB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006873/0.5095, allocations: 2.266 MB / 485.7 MB, free: 9.848 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.632e-05/0.5096, allocations: 4 kB / 485.7 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002412/0.5098, allocations: 0 / 485.7 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.326e-05/0.5099, allocations: 55.94 kB / 485.8 MB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0195/0.5294, allocations: 7.186 MB / 492.9 MB, free: 2.441 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.5311, allocations: 0.617 MB / 493.6 MB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003022/0.5341, allocations: 1.145 MB / 494.7 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.656e-05/0.5342, allocations: 16.75 kB / 494.7 MB, free: 0.6562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.443e-05/0.5343, allocations: 43.34 kB / 494.8 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 4.418e-06/0.5343, allocations: 0 / 494.8 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.007828/0.5421, allocations: 2.865 MB / 497.6 MB, free: 13.67 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.5422, allocations: 60.19 kB / 497.7 MB, free: 13.6 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.5439, allocations: 0.711 MB / 498.4 MB, free: 12.88 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000137/0.544, allocations: 25.7 kB / 498.4 MB, free: 12.84 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004932/0.5445, allocations: 0.7262 MB / 499.2 MB, free: 12.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003661/0.5449, allocations: 311.3 kB / 499.5 MB, free: 11.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/0.545, allocations: 0 / 499.5 MB, free: 11.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.5451, allocations: 346.8 kB / 499.8 MB, free: 11.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.5464, allocations: 481.8 kB / 0.4885 GB, free: 10.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.5478, allocations: 0.645 MB / 0.4892 GB, free: 10.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.5492, allocations: 0.5649 MB / 0.4897 GB, free: 9.699 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.5493, allocations: 4 kB / 0.4897 GB, free: 9.695 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003954/0.5532, allocations: 1.478 MB / 0.4912 GB, free: 8.199 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.5533, allocations: 7.984 kB / 0.4912 GB, free: 8.191 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.384e-05/0.5533, allocations: 8 kB / 0.4912 GB, free: 8.184 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.5551, allocations: 471 kB / 0.4916 GB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/0.5566, allocations: 175.7 kB / 0.4918 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1383/0.695, allocations: 8.008 MB / 0.4996 GB, free: 145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008186/0.6958, allocations: 30.12 kB / 0.4997 GB, free: 145 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.6959, allocations: 39.48 kB / 0.4997 GB, free: 145 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 7} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002407/0.6962, allocations: 46.81 kB / 0.4997 GB, free: 145 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003423/0.6965, allocations: 101.9 kB / 0.4998 GB, free: 145 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003437/0.7, allocations: 1.45 MB / 0.5012 GB, free: 144.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.7, allocations: 9.375 kB / 0.5013 GB, free: 144.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.7001, allocations: 3.812 kB / 0.5013 GB, free: 144.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.7001, allocations: 3.469 kB / 0.5013 GB, free: 144.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007881/0.708, allocations: 3.198 MB / 0.5044 GB, free: 144.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/0.708, allocations: 0 / 0.5044 GB, free: 144.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.7092, allocations: 124.8 kB / 0.5045 GB, free: 144.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.7107, allocations: 454 kB / 0.5049 GB, free: 144.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.38e-05/0.7109, allocations: 15.53 kB / 0.505 GB, free: 144.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009666/0.7205, allocations: 7.86 MB / 0.5126 GB, free: 139.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7206, allocations: 0 / 0.5126 GB, free: 139.5 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004708/0.7253, allocations: 2.261 MB / 0.5148 GB, free: 139.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007253/0.7261, allocations: 281.4 kB / 0.5151 GB, free: 139.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.7263, allocations: 5.25 kB / 0.5151 GB, free: 139.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008315/0.7271, allocations: 29 kB / 0.5151 GB, free: 139.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.7274, allocations: 63 kB / 0.5152 GB, free: 139.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.563e-05/0.7275, allocations: 28.23 kB / 0.5152 GB, free: 139.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000974/0.7285, allocations: 0.5454 MB / 0.5158 GB, free: 139.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001878/0.7304, allocations: 343.5 kB / 0.5161 GB, free: 139.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (supplyL.inductor[2].i,supplyL.inductor[3].i,cDC1.v,cDC2.v) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000397/0.7308, allocations: 145.8 kB / 0.5162 GB, free: 139 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.7342, allocations: 1.702 MB / 0.5179 GB, free: 138.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7342, allocations: 0 / 0.5179 GB, free: 138.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002213/0.7365, allocations: 1.156 MB / 0.519 GB, free: 138.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.7384, allocations: 221.1 kB / 0.5192 GB, free: 138.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007985/0.7464, allocations: 2.852 MB / 0.522 GB, free: 137.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/0.7485, allocations: 1.778 MB / 0.5237 GB, free: 136.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.262e-06/0.7485, allocations: 0 / 0.5237 GB, free: 136.7 MB / 394.7 MB Notification: Performance of Templates: time 0.0748/0.8233, allocations: 54.56 MB / 0.577 GB, free: 100 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/MultiPhase/Examples/Rectifier/Rectifier.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches