Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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.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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001654/0.001654, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.708/1.708, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009312/0.0009313, allocations: 87.02 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.93e-05/3.939e-05, allocations: 4 kB / 350.6 MB, free: 2.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 51.48 MB / 402.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3623/0.4727, allocations: 126.6 MB / 0.5163 GB, free: 11.6 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.473, allocations: 105.8 kB / 0.5164 GB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6743/1.147, allocations: 200.2 MB / 0.7119 GB, free: 26.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.147, allocations: 3.938 kB / 0.7119 GB, free: 26.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001125/1.149, allocations: 199.8 kB / 0.7121 GB, free: 26.32 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.0303/1.179, allocations: 7.977 MB / 0.7199 GB, free: 18.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.808e-05/1.179, allocations: 8.031 kB / 0.7199 GB, free: 18.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0132/1.192, allocations: 1.995 MB / 0.7219 GB, free: 16.24 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01999/1.212, allocations: 7.097 MB / 0.7288 GB, free: 9.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006842/1.213, allocations: 0.6421 MB / 0.7294 GB, free: 8.426 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003473/1.216, allocations: 0.8436 MB / 0.7302 GB, free: 7.582 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3379/1.554, allocations: 10.92 MB / 0.7409 GB, free: 29.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005573/1.555, allocations: 7.094 kB / 0.7409 GB, free: 29.94 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003053/1.558, allocations: 368 kB / 0.7413 GB, free: 29.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003499/1.558, allocations: 371 kB / 0.7416 GB, free: 29.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02127/1.58, allocations: 8.754 MB / 0.7502 GB, free: 29.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07992/1.66, allocations: 36.22 MB / 0.7855 GB, free: 23.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01794/1.678, allocations: 17.96 MB / 0.8031 GB, free: 25.42 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009687/1.687, allocations: 4.648 MB / 0.8076 GB, free: 25.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0197/1.707, allocations: 11.53 MB / 0.8189 GB, free: 19.56 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.297e-05/1.707, allocations: 67.39 kB / 0.8189 GB, free: 19.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=298): time 5.871e-06/1.707, allocations: 0 / 0.8189 GB, free: 19.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=350): time 0.02525/1.732, allocations: 12.02 MB / 0.8307 GB, free: 14.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/1.733, allocations: 91.88 kB / 0.8308 GB, free: 14.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006967/1.74, allocations: 3.846 MB / 0.8345 GB, free: 12.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006407/1.74, allocations: 82.55 kB / 0.8346 GB, free: 12.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002101/1.742, allocations: 3.896 MB / 0.8384 GB, free: 9.621 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/1.744, allocations: 1.189 MB / 0.8396 GB, free: 8.699 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/1.744, allocations: 93.09 kB / 0.8396 GB, free: 8.629 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002593/1.744, allocations: 482.5 kB / 0.8401 GB, free: 8.246 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002513/1.747, allocations: 1.784 MB / 0.8418 GB, free: 7.504 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003524/1.75, allocations: 3.217 MB / 0.845 GB, free: 4.953 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003392/1.753, allocations: 2.377 MB / 0.8473 GB, free: 3.984 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.77e-05/1.754, allocations: 18.48 kB / 0.8473 GB, free: 3.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01032/1.764, allocations: 6.448 MB / 0.8536 GB, free: 1.539 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/1.764, allocations: 24.06 kB / 0.8536 GB, free: 1.539 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.055e-05/1.764, allocations: 49.34 kB / 0.8537 GB, free: 1.539 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002183/1.766, allocations: 0.8943 MB / 0.8546 GB, free: 1.258 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/1.77, allocations: 1.037 MB / 0.8556 GB, free: 1.219 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/1.782, allocations: 11.4 MB / 0.8667 GB, free: 8.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005593/1.788, allocations: 250.7 kB / 0.867 GB, free: 8.738 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008117/1.789, allocations: 205.6 kB / 0.8671 GB, free: 8.699 MB / 474.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 (516): * Single equations (assignments): 508 * 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%) 8,(2,100.0%) 13,(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008627/1.789, allocations: 385.5 kB / 0.8675 GB, free: 8.438 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/1.791, allocations: 497.1 kB / 0.868 GB, free: 8.18 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009813/1.801, allocations: 5.408 MB / 0.8733 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/1.801, allocations: 34.97 kB / 0.8733 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.729e-05/1.801, allocations: 19.28 kB / 0.8733 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.699e-05/1.801, allocations: 16.92 kB / 0.8733 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02394/1.825, allocations: 12.95 MB / 0.886 GB, free: 156 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.694e-05/1.825, allocations: 6.938 kB / 0.886 GB, free: 156 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002594/1.827, allocations: 0.6002 MB / 0.8866 GB, free: 132 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002736/1.83, allocations: 1.06 MB / 0.8876 GB, free: 15.61 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003616/1.83, allocations: 86.89 kB / 0.8877 GB, free: 15.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0176/1.848, allocations: 15.23 MB / 0.9026 GB, free: 0.8984 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/1.848, allocations: 5.125 kB / 0.9026 GB, free: 0.8945 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/1.862, allocations: 8.46 MB / 0.9108 GB, free: 8.879 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003047/1.865, allocations: 0.9678 MB / 0.9118 GB, free: 7.988 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009765/1.866, allocations: 79.56 kB / 0.9119 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002619/1.869, allocations: 208 kB / 0.9121 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005834/1.87, allocations: 270.2 kB / 0.9123 GB, free: 7.586 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002337/1.87, allocations: 95.73 kB / 0.9124 GB, free: 7.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005001/1.875, allocations: 2.911 MB / 0.9152 GB, free: 4.871 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.5e-07/1.875, allocations: 4 kB / 0.9152 GB, free: 4.867 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006905/1.882, allocations: 1.563 MB / 0.9168 GB, free: 3.324 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 (269): * Single equations (assignments): 262 * 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%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001533/1.883, allocations: 0.7355 MB / 0.9175 GB, free: 2.703 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3497/2.233, allocations: 5.673 MB / 0.923 GB, free: 88.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.377e-06/2.233, allocations: 0 / 0.923 GB, free: 88.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00514/2.238, allocations: 3.315 MB / 0.9263 GB, free: 87.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005871/2.244, allocations: 1.066 MB / 0.9273 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02693/2.271, allocations: 12.21 MB / 0.9392 GB, free: 85.13 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007089/2.278, allocations: 5.227 MB / 0.9443 GB, free: 84.25 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005001/2.283, allocations: 1.046 MB / 0.9454 GB, free: 84.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/2.284, allocations: 321.2 kB / 0.9457 GB, free: 84.16 MB / 0.4948 GB Notification: Performance of SimCode: time 9.92e-07/2.284, allocations: 0 / 0.9457 GB, free: 84.16 MB / 0.4948 GB Notification: Performance of Templates: time 0.1244/2.409, allocations: 70.52 MB / 1.015 GB, free: 80.39 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches