Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.stray.port_p.Phi.im|smee3.stator.stray.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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.ComparisonPolyphase.SMEE_Generator_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.stray.port_p.Phi.im|smee3.stator.stray.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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.ComparisonPolyphase.SMEE_Generator_Polyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 221.3 MB / 235.5 MB, free: 2.961 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.0008563/0.0008563, allocations: 97.98 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.12e-05/3.123e-05, allocations: 7.984 kB / 343.9 MB, free: 4.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09463/0.09468, allocations: 50.41 MB / 394.3 MB, free: 1.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4496, allocations: 125.5 MB / 0.5076 GB, free: 9.906 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.4499, allocations: 95.77 kB / 0.5077 GB, free: 9.816 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6492/1.099, allocations: 194.1 MB / 0.6973 GB, free: 5.242 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.099, allocations: 0 / 0.6973 GB, free: 5.242 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008274/1.1, allocations: 211.7 kB / 0.6975 GB, free: 5.035 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02573/1.126, allocations: 7.917 MB / 0.7052 GB, free: 13.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/1.126, allocations: 12.03 kB / 0.7052 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0121/1.138, allocations: 1.909 MB / 0.7071 GB, free: 11.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02069/1.159, allocations: 7.042 MB / 0.7139 GB, free: 3.977 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008939/1.16, allocations: 0.6421 MB / 0.7146 GB, free: 3.332 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003679/1.163, allocations: 0.8513 MB / 0.7154 GB, free: 2.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3111/1.474, allocations: 10.92 MB / 0.7261 GB, free: 35.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002486/1.475, allocations: 6.188 kB / 0.7261 GB, free: 35.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001563/1.476, allocations: 365.7 kB / 0.7264 GB, free: 35.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003749/1.477, allocations: 369.3 kB / 0.7268 GB, free: 35.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0225/1.499, allocations: 8.754 MB / 0.7353 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06892/1.568, allocations: 36.05 MB / 0.7705 GB, free: 29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01528/1.583, allocations: 16.78 MB / 0.7869 GB, free: 16.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006316/1.59, allocations: 3.399 MB / 0.7902 GB, free: 15.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01686/1.607, allocations: 9.587 MB / 0.7996 GB, free: 10.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/1.607, allocations: 70.45 kB / 0.7997 GB, free: 10.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=298): time 5.09e-06/1.607, allocations: 0 / 0.7997 GB, free: 10.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=350): time 0.02147/1.628, allocations: 11.6 MB / 0.811 GB, free: 5.539 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/1.628, allocations: 89.33 kB / 0.8111 GB, free: 5.473 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007022/1.635, allocations: 3.831 MB / 0.8148 GB, free: 4.004 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000761/1.636, allocations: 82.89 kB / 0.8149 GB, free: 3.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00256/1.639, allocations: 3.878 MB / 0.8187 GB, free: 1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001348/1.64, allocations: 1.19 MB / 0.8198 GB, free: 80 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002805/1.64, allocations: 91.81 kB / 0.8199 GB, free: 8 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003525/1.641, allocations: 486.9 kB / 0.8204 GB, free: 15.62 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002985/1.644, allocations: 1.732 MB / 0.8221 GB, free: 14.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003848/1.648, allocations: 3.162 MB / 0.8252 GB, free: 12.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003534/1.651, allocations: 2.32 MB / 0.8274 GB, free: 11.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-05/1.651, allocations: 13.59 kB / 0.8274 GB, free: 11.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01282/1.664, allocations: 6.154 MB / 0.8335 GB, free: 9.18 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.843e-05/1.664, allocations: 24.53 kB / 0.8335 GB, free: 9.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.493e-05/1.664, allocations: 49.17 kB / 0.8335 GB, free: 9.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001916/1.666, allocations: 0.7187 MB / 0.8342 GB, free: 8.953 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004157/1.67, allocations: 1.049 MB / 0.8353 GB, free: 8.914 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/1.681, allocations: 10.05 MB / 0.8451 GB, free: 1.082 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.686, allocations: 257.1 kB / 0.8453 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007807/1.687, allocations: 198.2 kB / 0.8455 GB, free: 0.9609 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007996/1.688, allocations: 390.2 kB / 0.8459 GB, free: 0.6953 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/1.689, allocations: 483.3 kB / 0.8463 GB, free: 460 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008867/1.698, allocations: 5.112 MB / 0.8513 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.768e-05/1.698, allocations: 32.97 kB / 0.8514 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/1.698, allocations: 15.16 kB / 0.8514 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.54e-05/1.698, allocations: 18.66 kB / 0.8514 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02418/1.722, allocations: 12.47 MB / 0.8636 GB, free: 7.121 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.677e-05/1.722, allocations: 8.516 kB / 0.8636 GB, free: 7.113 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002663/1.725, allocations: 0.5994 MB / 0.8642 GB, free: 6.641 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002253/1.727, allocations: 0.882 MB / 0.865 GB, free: 5.906 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002995/1.727, allocations: 90.78 kB / 0.8651 GB, free: 5.828 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01583/1.743, allocations: 13.97 MB / 0.8788 GB, free: 8.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/1.743, allocations: 4 kB / 0.8788 GB, free: 8.246 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/1.757, allocations: 8.053 MB / 0.8866 GB, free: 0.5898 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004572/1.761, allocations: 1.041 MB / 0.8876 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00138/1.763, allocations: 86.98 kB / 0.8877 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003192/1.766, allocations: 207.7 kB / 0.8879 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006583/1.767, allocations: 269.3 kB / 0.8882 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002472/1.767, allocations: 103.1 kB / 0.8883 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00535/1.772, allocations: 2.891 MB / 0.8911 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.51e-07/1.772, allocations: 5.688 kB / 0.8911 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006832/1.779, allocations: 1.536 MB / 0.8926 GB, free: 11.36 MB / 0.4948 GB 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001295/1.78, allocations: 0.7212 MB / 0.8933 GB, free: 10.78 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008604/1.789, allocations: 5.288 MB / 0.8985 GB, free: 5.746 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/1.789, allocations: 4 kB / 0.8985 GB, free: 5.742 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004875/1.794, allocations: 3.222 MB / 0.9016 GB, free: 2.691 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005042/1.799, allocations: 1.059 MB / 0.9027 GB, free: 1.855 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2946/2.094, allocations: 12.09 MB / 0.9145 GB, free: 87.84 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006308/2.1, allocations: 5.215 MB / 0.9196 GB, free: 86.97 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004611/2.105, allocations: 1.058 MB / 0.9206 GB, free: 86.93 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/2.106, allocations: 315.8 kB / 0.9209 GB, free: 86.93 MB / 0.4948 GB Notification: Performance of SimCode: time 8.81e-07/2.106, allocations: 0 / 0.9209 GB, free: 86.93 MB / 0.4948 GB Notification: Performance of Templates: time 0.116/2.222, allocations: 68.71 MB / 0.988 GB, free: 83.49 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMEE_Generator_Polyphase/SMEE_Generator_Polyphase.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches