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_Generator.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_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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009855/0.0009856, allocations: 184 kB / 8.135 MB, free: 2.207 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.192/1.192, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.000952/0.000952, allocations: 96.59 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.934e-06/7.965e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2743, allocations: 50.4 MB / 386.9 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3025/0.5769, allocations: 136.6 MB / 0.5112 GB, free: 64.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.5771, allocations: 94.61 kB / 0.5113 GB, free: 64.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3003/0.8774, allocations: 129.9 MB / 0.6382 GB, free: 8.117 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004759/0.878, allocations: 147.8 kB / 0.6383 GB, free: 7.973 MB / 426.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.01756/0.8955, allocations: 5.451 MB / 0.6437 GB, free: 2.449 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.8956, allocations: 8.031 kB / 0.6437 GB, free: 2.441 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007616/0.9032, allocations: 1.167 MB / 0.6448 GB, free: 1.266 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/0.9207, allocations: 4.934 MB / 0.6496 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004288/0.9212, allocations: 188 kB / 0.6498 GB, free: 12.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00219/0.9234, allocations: 339.8 kB / 0.6501 GB, free: 11.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01463/0.938, allocations: 5.342 MB / 0.6553 GB, free: 6.395 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1593/1.097, allocations: 6.29 MB / 0.6615 GB, free: 85.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003326/1.098, allocations: 9.281 kB / 0.6615 GB, free: 85.76 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001673/1.099, allocations: 7.062 kB / 0.6615 GB, free: 85.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001983/1.1, allocations: 256.8 kB / 0.6618 GB, free: 85.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04125/1.141, allocations: 22.97 MB / 0.6842 GB, free: 80.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002836/1.144, allocations: 1.882 MB / 0.686 GB, free: 80.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00286/1.147, allocations: 2.271 MB / 0.6882 GB, free: 80.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/1.158, allocations: 7.242 MB / 0.6953 GB, free: 79.65 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/1.158, allocations: 62.05 kB / 0.6954 GB, free: 79.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 5.44e-06/1.158, allocations: 0 / 0.6954 GB, free: 79.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=332): time 0.02182/1.18, allocations: 10.81 MB / 0.7059 GB, free: 78.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/1.18, allocations: 91.8 kB / 0.706 GB, free: 77.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004385/1.185, allocations: 2.413 MB / 0.7084 GB, free: 77.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006132/1.185, allocations: 29.64 kB / 0.7084 GB, free: 77.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009554/1.186, allocations: 2.109 MB / 0.7105 GB, free: 76.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009845/1.187, allocations: 1.083 MB / 0.7115 GB, free: 75.87 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/1.188, allocations: 0 / 0.7115 GB, free: 75.87 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/1.188, allocations: 465 kB / 0.712 GB, free: 75.56 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002177/1.19, allocations: 1.616 MB / 0.7135 GB, free: 75.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002515/1.192, allocations: 2.785 MB / 0.7163 GB, free: 74.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/1.196, allocations: 2.158 MB / 0.7184 GB, free: 74.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.048e-05/1.196, allocations: 15.69 kB / 0.7184 GB, free: 74.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=517) (initialization): time 0.008711/1.204, allocations: 5.489 MB / 0.7237 GB, free: 73.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.204, allocations: 3.875 kB / 0.7237 GB, free: 73.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.627e-05/1.204, allocations: 44.41 kB / 0.7238 GB, free: 73.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002056/1.206, allocations: 0.853 MB / 0.7246 GB, free: 73.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003716/1.21, allocations: 0.931 MB / 0.7255 GB, free: 73.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009061/1.219, allocations: 8.956 MB / 0.7343 GB, free: 69.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003495/1.223, allocations: 156.1 kB / 0.7344 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004798/1.223, allocations: 179.4 kB / 0.7346 GB, free: 69.67 MB / 442.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.0006034/1.224, allocations: 217.6 kB / 0.7348 GB, free: 69.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000697/1.225, allocations: 368.1 kB / 0.7352 GB, free: 69.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007692/1.232, allocations: 4.84 MB / 0.7399 GB, free: 68.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.96e-05/1.232, allocations: 33.19 kB / 0.7399 GB, free: 68.92 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-05/1.232, allocations: 9.031 kB / 0.7399 GB, free: 68.92 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.258e-05/1.232, allocations: 15.47 kB / 0.7399 GB, free: 68.92 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/1.249, allocations: 10.11 MB / 0.7498 GB, free: 64.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005784/1.255, allocations: 4.031 MB / 0.7537 GB, free: 63.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002602/1.258, allocations: 0.5716 MB / 0.7543 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/1.26, allocations: 0.9289 MB / 0.7552 GB, free: 62.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003937/1.26, allocations: 36 kB / 0.7552 GB, free: 62.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/1.273, allocations: 12.44 MB / 0.7674 GB, free: 54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/1.273, allocations: 4.656 kB / 0.7674 GB, free: 54 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01098/1.284, allocations: 7.579 MB / 0.7748 GB, free: 50.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001935/1.286, allocations: 0.7919 MB / 0.7756 GB, free: 49.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006799/1.286, allocations: 22.2 kB / 0.7756 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002086/1.289, allocations: 134.2 kB / 0.7757 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003464/1.289, allocations: 182.5 kB / 0.7759 GB, free: 49.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002074/1.289, allocations: 100.3 kB / 0.776 GB, free: 49.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002419/1.292, allocations: 1.768 MB / 0.7777 GB, free: 48.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003909/1.295, allocations: 1.042 MB / 0.7787 GB, free: 48.96 MB / 442.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.0008264/1.296, allocations: 492.2 kB / 0.7792 GB, free: 48.85 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006282/1.303, allocations: 4.842 MB / 0.7839 GB, free: 46.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.303, allocations: 0 / 0.7839 GB, free: 46.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0039/1.306, allocations: 2.867 MB / 0.7867 GB, free: 45.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003234/1.31, allocations: 0.5878 MB / 0.7873 GB, free: 45.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/1.326, allocations: 8.822 MB / 0.7959 GB, free: 39.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003973/1.33, allocations: 3.875 MB / 0.7997 GB, free: 36.54 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/1.33, allocations: 3.828 kB / 0.7997 GB, free: 36.54 MB / 442.7 MB Notification: Performance of Templates: time 0.0843/1.415, allocations: 51.7 MB / 0.8502 GB, free: 5.52 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches