Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") [: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 trunk/package.mo): time 0.001509/0.00151, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001154, allocations: 93.14 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.166e-05/1.168e-05, allocations: 8 kB / 343.2 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 51.47 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3305/0.4317, allocations: 137.6 MB / 0.5198 GB, free: 4.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.432, allocations: 90.12 kB / 0.5199 GB, free: 4.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.505/0.937, allocations: 133.3 MB / 0.6501 GB, free: 59.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001014/0.938, allocations: 140.8 kB / 0.6502 GB, free: 59.89 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02225/0.9603, allocations: 5.485 MB / 0.6556 GB, free: 57.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.9604, allocations: 9.219 kB / 0.6556 GB, free: 57.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007865/0.9682, allocations: 1.209 MB / 0.6567 GB, free: 56.87 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01477/0.9831, allocations: 4.961 MB / 0.6616 GB, free: 54.44 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003228/0.9834, allocations: 188.8 kB / 0.6618 GB, free: 54.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001866/0.9853, allocations: 345.2 kB / 0.6621 GB, free: 54.42 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0142/0.9995, allocations: 5.34 MB / 0.6673 GB, free: 52.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01896/1.019, allocations: 6.283 MB / 0.6735 GB, free: 49.44 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003501/1.019, allocations: 17.12 kB / 0.6735 GB, free: 49.43 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001681/1.021, allocations: 3.25 kB / 0.6735 GB, free: 49.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002408/1.021, allocations: 253 kB / 0.6737 GB, free: 49.41 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.051/1.072, allocations: 23.07 MB / 0.6962 GB, free: 32.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003586/1.075, allocations: 1.894 MB / 0.6981 GB, free: 30.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003677/1.079, allocations: 2.312 MB / 0.7004 GB, free: 28.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01606/1.095, allocations: 7.819 MB / 0.708 GB, free: 20.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/1.095, allocations: 64.73 kB / 0.7081 GB, free: 20.01 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 4.779e-06/1.095, allocations: 0 / 0.7081 GB, free: 20.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=332): time 0.02571/1.121, allocations: 10.82 MB / 0.7186 GB, free: 9.113 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/1.121, allocations: 85.98 kB / 0.7187 GB, free: 9.016 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005552/1.127, allocations: 2.421 MB / 0.7211 GB, free: 6.594 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005777/1.127, allocations: 25.7 kB / 0.7211 GB, free: 6.562 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001232/1.129, allocations: 2.122 MB / 0.7232 GB, free: 4.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001296/1.13, allocations: 1.078 MB / 0.7242 GB, free: 3.316 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004861/1.13, allocations: 0 / 0.7242 GB, free: 3.316 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003126/1.131, allocations: 470.7 kB / 0.7247 GB, free: 2.848 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002675/1.133, allocations: 1.617 MB / 0.7262 GB, free: 1.223 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003534/1.137, allocations: 2.776 MB / 0.729 GB, free: 13.91 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004208/1.141, allocations: 2.164 MB / 0.7311 GB, free: 11.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-05/1.141, allocations: 12 kB / 0.7311 GB, free: 11.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.01115/1.152, allocations: 5.485 MB / 0.7364 GB, free: 6.172 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/1.152, allocations: 12.03 kB / 0.7364 GB, free: 6.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.262e-05/1.153, allocations: 40 kB / 0.7365 GB, free: 6.121 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002354/1.155, allocations: 0.858 MB / 0.7373 GB, free: 5.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/1.159, allocations: 0.9282 MB / 0.7382 GB, free: 4.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1951/1.354, allocations: 8.956 MB / 0.747 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003967/1.358, allocations: 150.8 kB / 0.7471 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007861/1.359, allocations: 179.6 kB / 0.7473 GB, free: 112.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 170 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (464): * Single equations (assignments): 455 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006443/1.36, allocations: 216.4 kB / 0.7475 GB, free: 112.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008512/1.361, allocations: 373.3 kB / 0.7479 GB, free: 112.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008052/1.369, allocations: 4.845 MB / 0.7526 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.532e-05/1.369, allocations: 30.38 kB / 0.7526 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.05e-05/1.369, allocations: 16.38 kB / 0.7526 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.928e-05/1.369, allocations: 12.89 kB / 0.7526 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/1.387, allocations: 10.11 MB / 0.7625 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005732/1.392, allocations: 4.033 MB / 0.7664 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002497/1.395, allocations: 0.5738 MB / 0.767 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002379/1.397, allocations: 0.9316 MB / 0.7679 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002633/1.397, allocations: 31.11 kB / 0.7679 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/1.409, allocations: 12.44 MB / 0.7801 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/1.41, allocations: 6 kB / 0.7801 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01127/1.421, allocations: 7.587 MB / 0.7875 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002313/1.423, allocations: 0.787 MB / 0.7883 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008831/1.424, allocations: 25.56 kB / 0.7883 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002298/1.426, allocations: 142.3 kB / 0.7884 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003585/1.427, allocations: 177.9 kB / 0.7886 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002153/1.427, allocations: 95.39 kB / 0.7887 GB, free: 102.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002744/1.43, allocations: 1.778 MB / 0.7904 GB, free: 102.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004674/1.434, allocations: 1.062 MB / 0.7915 GB, free: 102.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 260 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001015/1.435, allocations: 0.499 MB / 0.792 GB, free: 102.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007229/1.443, allocations: 4.849 MB / 0.7967 GB, free: 101.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/1.443, allocations: 3.938 kB / 0.7967 GB, free: 101.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004515/1.447, allocations: 2.856 MB / 0.7995 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004029/1.451, allocations: 0.5873 MB / 0.8001 GB, free: 100.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/1.469, allocations: 8.848 MB / 0.8087 GB, free: 97.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004406/1.474, allocations: 3.884 MB / 0.8125 GB, free: 95.75 MB / 458.7 MB Notification: Performance of SimCode: time 1.323e-06/1.474, allocations: 0 / 0.8125 GB, free: 95.75 MB / 458.7 MB Notification: Performance of Templates: time 0.0861/1.56, allocations: 52.04 MB / 0.8633 GB, free: 84.95 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches