Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.excitation.electroMagneticConverter.Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_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.0009698/0.0009699, allocations: 182.9 kB / 8.135 MB, free: 2.219 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.17/1.17, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.001001/0.001001, allocations: 98.05 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.871e-06/5.911e-06, allocations: 0 / 336.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2299, allocations: 50.39 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3624/0.5924, allocations: 131.7 MB / 0.5065 GB, free: 59.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002645/0.5927, allocations: 96.58 kB / 0.5066 GB, free: 59.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2021/0.7948, allocations: 94.88 MB / 0.5993 GB, free: 15.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003476/0.7952, allocations: 99.55 kB / 0.5994 GB, free: 14.92 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 958 * Number of variables: 958 Notification: Performance of Generate backend data structure: time 0.01143/0.8066, allocations: 3.759 MB / 0.603 GB, free: 11.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.8067, allocations: 8.031 kB / 0.603 GB, free: 11.1 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00613/0.8128, allocations: 0.9238 MB / 0.6039 GB, free: 10.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/0.8235, allocations: 3.625 MB / 0.6075 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.8237, allocations: 116 kB / 0.6076 GB, free: 6.453 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/0.8248, allocations: 219.9 kB / 0.6078 GB, free: 6.238 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007502/0.8323, allocations: 3.553 MB / 0.6113 GB, free: 2.684 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.8428, allocations: 4.081 MB / 0.6153 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001042/0.8429, allocations: 11.89 kB / 0.6153 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003787/0.8433, allocations: 0 / 0.6153 GB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/0.8435, allocations: 151.3 kB / 0.6154 GB, free: 14.31 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02968/0.8731, allocations: 15.42 MB / 0.6305 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/0.8756, allocations: 1.427 MB / 0.6319 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002684/0.8783, allocations: 1.74 MB / 0.6336 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009659/0.888, allocations: 5.33 MB / 0.6388 GB, free: 6.016 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.888, allocations: 60.5 kB / 0.6388 GB, free: 5.949 MB / 426.7 MB Notification: Performance of pre-optimization done (n=211): time 4.258e-06/0.8881, allocations: 0 / 0.6388 GB, free: 5.949 MB / 426.7 MB Notification: Performance of matching and sorting (n=214): time 0.01114/0.8992, allocations: 5.601 MB / 0.6443 GB, free: 256 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.8993, allocations: 176.2 kB / 0.6445 GB, free: 40 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/0.902, allocations: 1.586 MB / 0.646 GB, free: 14.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003024/0.9023, allocations: 25.7 kB / 0.646 GB, free: 14.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007553/0.9031, allocations: 1.311 MB / 0.6473 GB, free: 13.06 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006046/0.9037, allocations: 0.6928 MB / 0.648 GB, free: 12.36 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.9038, allocations: 0 / 0.648 GB, free: 12.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.904, allocations: 399 kB / 0.6484 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.9055, allocations: 0.9342 MB / 0.6493 GB, free: 11.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.9073, allocations: 1.568 MB / 0.6508 GB, free: 9.176 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/0.9094, allocations: 1.232 MB / 0.652 GB, free: 7.945 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/0.9094, allocations: 4 kB / 0.652 GB, free: 7.941 MB / 442.7 MB Notification: Performance of matching and sorting (n=320) (initialization): time 0.005489/0.9149, allocations: 3.155 MB / 0.6551 GB, free: 4.746 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1645/1.079, allocations: 7.624 MB / 0.6626 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.515e-05/1.079, allocations: 20.98 kB / 0.6626 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/1.081, allocations: 477.4 kB / 0.663 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/1.083, allocations: 0.5295 MB / 0.6635 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005964/1.089, allocations: 7.603 MB / 0.671 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00246/1.091, allocations: 57 kB / 0.671 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003873/1.092, allocations: 100.9 kB / 0.6711 GB, free: 102.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.077e-06/1.092, allocations: 3.969 kB / 0.6711 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0049/1.097, allocations: 2.87 MB / 0.6739 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.296e-05/1.097, allocations: 22.22 kB / 0.674 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009477/1.098, allocations: 477.4 kB / 0.6744 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002018/1.1, allocations: 0.5224 MB / 0.6749 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005423/1.105, allocations: 7.605 MB / 0.6823 GB, free: 97.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002138/1.108, allocations: 45 kB / 0.6824 GB, free: 97.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002856/1.108, allocations: 98.84 kB / 0.6825 GB, free: 97.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (288): * Single equations (assignments): 281 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005547/1.108, allocations: 174.5 kB / 0.6826 GB, free: 96.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/1.109, allocations: 246.9 kB / 0.6829 GB, free: 96.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004863/1.114, allocations: 2.99 MB / 0.6858 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/1.114, allocations: 26.97 kB / 0.6858 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/1.114, allocations: 3.562 kB / 0.6858 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/1.114, allocations: 11.48 kB / 0.6858 GB, free: 96.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009641/1.123, allocations: 6.167 MB / 0.6919 GB, free: 95.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/1.123, allocations: 0 / 0.6919 GB, free: 95.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/1.125, allocations: 306 kB / 0.6922 GB, free: 95.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/1.126, allocations: 0.6633 MB / 0.6928 GB, free: 95.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/1.126, allocations: 21.98 kB / 0.6928 GB, free: 95.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009222/1.136, allocations: 11.88 MB / 0.7044 GB, free: 88.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.136, allocations: 3.75 kB / 0.7044 GB, free: 88.29 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005733/1.141, allocations: 4.435 MB / 0.7088 GB, free: 87.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/1.143, allocations: 0.5216 MB / 0.7093 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003844/1.143, allocations: 8.688 kB / 0.7093 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/1.144, allocations: 56.03 kB / 0.7093 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/1.144, allocations: 117.6 kB / 0.7094 GB, free: 87.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/1.145, allocations: 56.44 kB / 0.7095 GB, free: 87.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0017/1.146, allocations: 1.175 MB / 0.7106 GB, free: 87.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003826/1.15, allocations: 1.189 MB / 0.7118 GB, free: 87.11 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * 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 (160): * Single equations (assignments): 154 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 16} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000742/1.151, allocations: 454.5 kB / 0.7122 GB, free: 87.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006972/1.158, allocations: 4.966 MB / 0.7171 GB, free: 85.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/1.158, allocations: 7.391 kB / 0.7171 GB, free: 85.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002416/1.16, allocations: 1.92 MB / 0.719 GB, free: 85.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/1.163, allocations: 468.4 kB / 0.7194 GB, free: 85.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/1.175, allocations: 5.8 MB / 0.7251 GB, free: 84.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002545/1.177, allocations: 2.732 MB / 0.7278 GB, free: 83.25 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/1.177, allocations: 0 / 0.7278 GB, free: 83.25 MB / 442.7 MB Notification: Performance of Templates: time 0.08684/1.264, allocations: 51.34 MB / 0.7779 GB, free: 72.81 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Rectifier/SMEE_Rectifier.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Rectifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches