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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 176.5 kB / 17.39 MB, free: 4.301 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.387/1.387, allocations: 223.3 MB / 241.4 MB, free: 11.67 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008968/0.0008968, allocations: 93.95 kB / 292.6 MB, free: 10.74 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004052/0.0004052, allocations: 11.94 kB / 352.4 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2375, allocations: 50.4 MB / 402.8 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2999/0.5374, allocations: 137.7 MB / 0.5278 GB, free: 54.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.5377, allocations: 98.86 kB / 0.5279 GB, free: 54.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2831/0.8207, allocations: 131.3 MB / 0.656 GB, free: 11.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.8208, allocations: 4 kB / 0.656 GB, free: 11.03 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004112/0.8212, allocations: 143.9 kB / 0.6562 GB, free: 10.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.01548/0.8367, allocations: 5.992 MB / 0.662 GB, free: 4.812 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.425e-05/0.8368, allocations: 8.031 kB / 0.662 GB, free: 4.805 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005421/0.8422, allocations: 1.16 MB / 0.6632 GB, free: 3.637 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1965/1.039, allocations: 4.381 MB / 0.6674 GB, free: 48.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005374/1.039, allocations: 428.1 kB / 0.6679 GB, free: 48.74 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001569/1.041, allocations: 0.5538 MB / 0.6684 GB, free: 48.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01015/1.051, allocations: 7.261 MB / 0.6755 GB, free: 48.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/1.051, allocations: 10.25 kB / 0.6755 GB, free: 48.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004742/1.052, allocations: 237.1 kB / 0.6757 GB, free: 48.09 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002409/1.052, allocations: 249.6 kB / 0.676 GB, free: 48.08 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008986/1.061, allocations: 5.859 MB / 0.6817 GB, free: 48.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02849/1.089, allocations: 23.88 MB / 0.705 GB, free: 43.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006217/1.096, allocations: 8.805 MB / 0.7136 GB, free: 37.44 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002931/1.099, allocations: 2.346 MB / 0.7159 GB, free: 37.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009248/1.108, allocations: 7.012 MB / 0.7227 GB, free: 36.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/1.108, allocations: 60.47 kB / 0.7228 GB, free: 36.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=243): time 4.068e-06/1.108, allocations: 2.281 kB / 0.7228 GB, free: 36.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=294): time 0.02991/1.138, allocations: 15.99 MB / 0.7384 GB, free: 30.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/1.138, allocations: 86.12 kB / 0.7385 GB, free: 30.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003697/1.142, allocations: 3.353 MB / 0.7418 GB, free: 29.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001502/1.142, allocations: 72.83 kB / 0.7418 GB, free: 29.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/1.143, allocations: 2.673 MB / 0.7444 GB, free: 27.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005213/1.144, allocations: 1.008 MB / 0.7454 GB, free: 26.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/1.144, allocations: 74.53 kB / 0.7455 GB, free: 26.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/1.144, allocations: 455.7 kB / 0.7459 GB, free: 26.09 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002175/1.146, allocations: 1.617 MB / 0.7475 GB, free: 25.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002592/1.149, allocations: 2.815 MB / 0.7503 GB, free: 23.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00512/1.154, allocations: 4.739 MB / 0.7549 GB, free: 20.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.554e-05/1.154, allocations: 10.12 kB / 0.7549 GB, free: 20.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.007904/1.162, allocations: 5.7 MB / 0.7605 GB, free: 18.37 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.122e-05/1.162, allocations: 25.22 kB / 0.7605 GB, free: 18.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.454e-05/1.162, allocations: 44.34 kB / 0.7605 GB, free: 18.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/1.164, allocations: 0.8617 MB / 0.7614 GB, free: 18.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002697/1.166, allocations: 0.869 MB / 0.7622 GB, free: 18.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008789/1.175, allocations: 9.832 MB / 0.7718 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/1.178, allocations: 247.3 kB / 0.7721 GB, free: 11.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002297/1.178, allocations: 167.7 kB / 0.7722 GB, free: 11.32 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (427): * Single equations (assignments): 418 * 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,75.0%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002531/1.18, allocations: 1.625 MB / 0.7738 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004974/1.181, allocations: 401 kB / 0.7742 GB, free: 10.28 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006802/1.188, allocations: 4.83 MB / 0.7789 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/1.188, allocations: 32.78 kB / 0.7789 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/1.188, allocations: 9.875 kB / 0.7789 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-05/1.188, allocations: 14.11 kB / 0.779 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01423/1.202, allocations: 10.31 MB / 0.789 GB, free: 2.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00579/1.208, allocations: 4.102 MB / 0.793 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002056/1.21, allocations: 0.5061 MB / 0.7935 GB, free: 14.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002321/1.212, allocations: 0.9871 MB / 0.7945 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001828/1.212, allocations: 70.77 kB / 0.7946 GB, free: 13.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/1.227, allocations: 14.82 MB / 0.809 GB, free: 15.44 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/1.227, allocations: 15.06 kB / 0.809 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01158/1.239, allocations: 6.987 MB / 0.8159 GB, free: 9.055 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002236/1.241, allocations: 0.7776 MB / 0.8166 GB, free: 8.34 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005362/1.242, allocations: 66.72 kB / 0.8167 GB, free: 8.277 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/1.244, allocations: 194.3 kB / 0.8169 GB, free: 8.133 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004662/1.244, allocations: 217.4 kB / 0.8171 GB, free: 7.996 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/1.244, allocations: 87.31 kB / 0.8172 GB, free: 7.918 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00339/1.248, allocations: 2.252 MB / 0.8194 GB, free: 6.043 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.248, allocations: 4 kB / 0.8194 GB, free: 6.039 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003882/1.251, allocations: 1.203 MB / 0.8205 GB, free: 4.852 MB / 474.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008265/1.252, allocations: 0.5088 MB / 0.821 GB, free: 4.445 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008126/1.26, allocations: 5.021 MB / 0.8259 GB, free: 0 / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/1.26, allocations: 3.141 kB / 0.8259 GB, free: 0 / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005189/1.266, allocations: 3.169 MB / 0.829 GB, free: 13.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005999/1.272, allocations: 0.8614 MB / 0.8299 GB, free: 12.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01832/1.29, allocations: 12.64 MB / 0.8422 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1974/1.487, allocations: 3.518 MB / 0.8457 GB, free: 84.86 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003534/1.491, allocations: 0.8436 MB / 0.8465 GB, free: 84.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006547/1.492, allocations: 250.6 kB / 0.8467 GB, free: 84.82 MB / 490.7 MB Notification: Performance of SimCode: time 1.042e-06/1.492, allocations: 0 / 0.8467 GB, free: 84.82 MB / 490.7 MB Notification: Performance of Templates: time 0.08587/1.578, allocations: 56.69 MB / 0.9021 GB, free: 82.86 MB / 490.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/jenkins1/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