Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 196.8 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.385/1.385, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009411/0.0009411, allocations: 94.61 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.456e-05/2.497e-05, allocations: 4 kB / 350.6 MB, free: 2.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 51.48 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4559/0.5662, allocations: 168.6 MB / 0.5572 GB, free: 2.238 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5665, allocations: 100.3 kB / 0.5573 GB, free: 2.184 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.667/2.234, allocations: 408.8 MB / 0.9565 GB, free: 38.38 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.165e-06/2.234, allocations: 0 / 0.9565 GB, free: 38.38 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001222/2.235, allocations: 267.1 kB / 0.9568 GB, free: 38.35 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04159/2.277, allocations: 10.19 MB / 0.9667 GB, free: 35.1 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/2.277, allocations: 12.55 kB / 0.9667 GB, free: 35.1 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02458/2.302, allocations: 3.769 MB / 0.9704 GB, free: 34.48 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02355/2.325, allocations: 8.913 MB / 0.9791 GB, free: 33.33 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009791/2.326, allocations: 0.8054 MB / 0.9799 GB, free: 33.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005336/2.332, allocations: 1.056 MB / 0.9809 GB, free: 33.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04755/2.379, allocations: 16.19 MB / 0.9967 GB, free: 31.96 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005694/2.38, allocations: 20.69 kB / 0.9968 GB, free: 31.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0031/2.383, allocations: 462.1 kB / 0.9972 GB, free: 31.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006861/2.383, allocations: 0.7136 MB / 0.9979 GB, free: 31.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02672/2.41, allocations: 13.41 MB / 1.011 GB, free: 30.71 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09343/2.504, allocations: 57.18 MB / 1.067 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01989/2.524, allocations: 21.43 MB / 1.088 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005284/2.529, allocations: 3.271 MB / 1.091 GB, free: 2.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3586/2.888, allocations: 10.17 MB / 1.101 GB, free: 69.54 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.236e-05/2.888, allocations: 69.5 kB / 1.101 GB, free: 69.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=314): time 4.489e-06/2.888, allocations: 0 / 1.101 GB, free: 69.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=347): time 0.02804/2.916, allocations: 14.07 MB / 1.115 GB, free: 66.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00369/2.919, allocations: 2.923 MB / 1.118 GB, free: 64.92 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0086/2.928, allocations: 4.45 MB / 1.122 GB, free: 64.55 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007848/2.929, allocations: 84.58 kB / 1.122 GB, free: 64.52 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003155/2.932, allocations: 5.148 MB / 1.127 GB, free: 62.14 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001604/2.934, allocations: 1.222 MB / 1.128 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004731/2.934, allocations: 124.9 kB / 1.128 GB, free: 61.39 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003275/2.935, allocations: 0.552 MB / 1.129 GB, free: 61.07 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005015/2.94, allocations: 2.644 MB / 1.131 GB, free: 61.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00617/2.946, allocations: 5.334 MB / 1.137 GB, free: 57.71 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005971/2.952, allocations: 3.828 MB / 1.14 GB, free: 57.64 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/2.952, allocations: 26.44 kB / 1.14 GB, free: 57.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.02067/2.973, allocations: 9.185 MB / 1.149 GB, free: 57.08 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/2.973, allocations: 44.53 kB / 1.149 GB, free: 57.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001845/2.973, allocations: 90.72 kB / 1.15 GB, free: 57.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002353/2.975, allocations: 0.9227 MB / 1.15 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005917/2.981, allocations: 1.47 MB / 1.152 GB, free: 57.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01073/2.992, allocations: 9.708 MB / 1.161 GB, free: 52.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007444/2.999, allocations: 498.9 kB / 1.162 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/3.001, allocations: 334.2 kB / 1.162 GB, free: 52.91 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (755): * Single equations (assignments): 745 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 8,(1,100.0%) 5,(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001082/3.002, allocations: 0.5099 MB / 1.163 GB, free: 52.74 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001142/3.003, allocations: 0.5009 MB / 1.163 GB, free: 52.48 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01022/3.013, allocations: 6.167 MB / 1.169 GB, free: 52.01 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007397/3.021, allocations: 5.129 MB / 1.174 GB, free: 51.63 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.875e-05/3.021, allocations: 11 kB / 1.174 GB, free: 51.63 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.394e-05/3.021, allocations: 18.66 kB / 1.174 GB, free: 51.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03865/3.059, allocations: 21.41 MB / 1.195 GB, free: 44.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/3.059, allocations: 3.875 kB / 1.195 GB, free: 44.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002646/3.062, allocations: 0.5883 MB / 1.196 GB, free: 44.96 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002929/3.065, allocations: 1.148 MB / 1.197 GB, free: 44.68 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004932/3.066, allocations: 79.48 kB / 1.197 GB, free: 44.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01435/3.08, allocations: 14.58 MB / 1.211 GB, free: 34.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002865/3.083, allocations: 2.812 MB / 1.214 GB, free: 32.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/3.097, allocations: 9.674 MB / 1.223 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003517/3.101, allocations: 1.032 MB / 1.224 GB, free: 26.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001649/3.102, allocations: 72.75 kB / 1.224 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003921/3.106, allocations: 247.5 kB / 1.225 GB, free: 26.38 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000855/3.107, allocations: 268.5 kB / 1.225 GB, free: 26.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002671/3.107, allocations: 102.3 kB / 1.225 GB, free: 26.32 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007355/3.115, allocations: 3.297 MB / 1.228 GB, free: 25.06 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.52e-07/3.115, allocations: 0 / 1.228 GB, free: 25.06 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01142/3.126, allocations: 1.963 MB / 1.23 GB, free: 24.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (292): * Single equations (assignments): 283 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 4 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001777/3.128, allocations: 0.6982 MB / 1.231 GB, free: 24.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01132/3.139, allocations: 6.896 MB / 1.238 GB, free: 18.25 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/3.139, allocations: 4 kB / 1.238 GB, free: 18.24 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005948/3.145, allocations: 3.553 MB / 1.241 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006295/3.152, allocations: 1.084 MB / 1.242 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0325/3.184, allocations: 15.53 MB / 1.257 GB, free: 252 kB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01353/3.198, allocations: 7 MB / 1.264 GB, free: 11.71 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008461/3.206, allocations: 1.842 MB / 1.266 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00213/3.208, allocations: 388.3 kB / 1.266 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of SimCode: time 1.153e-06/3.208, allocations: 0 / 1.266 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of Templates: time 0.4767/3.685, allocations: 76.42 MB / 1.341 GB, free: 66.07 MB / 0.5105 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.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/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches