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.001489/0.001489, allocations: 176.4 kB / 8.349 MB, free: 0.7266 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.405/1.405, allocations: 221.5 MB / 230.3 MB, free: 7.527 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.001037/0.001037, allocations: 90.83 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.745e-05/1.748e-05, allocations: 4 kB / 337.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09509/0.09512, allocations: 50.43 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3756/0.4707, allocations: 136.7 MB / 0.5119 GB, free: 6.078 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.471, allocations: 91.95 kB / 0.5119 GB, free: 5.988 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5329/1.004, allocations: 129.9 MB / 0.6388 GB, free: 68.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.004, allocations: 8 kB / 0.6388 GB, free: 68.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005345/1.005, allocations: 147.8 kB / 0.6389 GB, free: 68.58 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.01814/1.023, allocations: 5.416 MB / 0.6442 GB, free: 63.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/1.023, allocations: 8.031 kB / 0.6442 GB, free: 63.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008219/1.031, allocations: 1.156 MB / 0.6454 GB, free: 61.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0133/1.044, allocations: 4.904 MB / 0.6502 GB, free: 57.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003081/1.045, allocations: 188 kB / 0.6503 GB, free: 56.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002056/1.047, allocations: 343.8 kB / 0.6507 GB, free: 56.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0126/1.059, allocations: 5.256 MB / 0.6558 GB, free: 51.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01913/1.079, allocations: 6.215 MB / 0.6619 GB, free: 44.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003416/1.079, allocations: 11.91 kB / 0.6619 GB, free: 44.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001901/1.081, allocations: 7.984 kB / 0.6619 GB, free: 44.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002382/1.081, allocations: 247.3 kB / 0.6621 GB, free: 44.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04318/1.124, allocations: 22.84 MB / 0.6844 GB, free: 21.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006362/1.131, allocations: 8.527 MB / 0.6928 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002914/1.134, allocations: 2.15 MB / 0.6949 GB, free: 9.711 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0114/1.145, allocations: 6.794 MB / 0.7015 GB, free: 2.789 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/1.145, allocations: 60.56 kB / 0.7015 GB, free: 2.723 MB / 426.7 MB Notification: Performance of pre-optimization done (n=241): time 4.91e-06/1.145, allocations: 0 / 0.7015 GB, free: 2.723 MB / 426.7 MB Notification: Performance of matching and sorting (n=292): time 0.2966/1.442, allocations: 10.29 MB / 0.7116 GB, free: 67.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/1.442, allocations: 81.45 kB / 0.7117 GB, free: 67.72 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005706/1.448, allocations: 2.385 MB / 0.714 GB, free: 67.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006317/1.448, allocations: 27.73 kB / 0.714 GB, free: 67.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002751/1.451, allocations: 2.688 MB / 0.7167 GB, free: 66.42 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00163/1.453, allocations: 0.9528 MB / 0.7176 GB, free: 65.79 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/1.453, allocations: 1.344 kB / 0.7176 GB, free: 65.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002405/1.453, allocations: 451.9 kB / 0.718 GB, free: 65.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002705/1.456, allocations: 1.412 MB / 0.7194 GB, free: 65.47 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003454/1.459, allocations: 2.567 MB / 0.7219 GB, free: 64.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004063/1.463, allocations: 2.032 MB / 0.7239 GB, free: 64.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.786e-05/1.463, allocations: 10.38 kB / 0.7239 GB, free: 64.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.01165/1.475, allocations: 5.153 MB / 0.7289 GB, free: 63.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.698e-05/1.475, allocations: 20.91 kB / 0.7289 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001343/1.475, allocations: 41.8 kB / 0.729 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002292/1.478, allocations: 0.8491 MB / 0.7298 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004029/1.482, allocations: 0.8666 MB / 0.7307 GB, free: 63.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01139/1.493, allocations: 9.359 MB / 0.7398 GB, free: 59.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004654/1.498, allocations: 174.5 kB / 0.74 GB, free: 59.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009312/1.499, allocations: 165.8 kB / 0.7401 GB, free: 59.61 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 416 * 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.0008184/1.5, allocations: 214.6 kB / 0.7403 GB, free: 59.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001414/1.501, allocations: 359.2 kB / 0.7407 GB, free: 59.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008323/1.509, allocations: 4.415 MB / 0.745 GB, free: 58.85 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.527e-05/1.509, allocations: 27.12 kB / 0.745 GB, free: 58.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/1.509, allocations: 8.812 kB / 0.745 GB, free: 58.85 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.078e-05/1.509, allocations: 13.41 kB / 0.745 GB, free: 58.85 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02121/1.531, allocations: 9.207 MB / 0.754 GB, free: 57.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005265/1.536, allocations: 3.804 MB / 0.7577 GB, free: 56.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002065/1.538, allocations: 0.5051 MB / 0.7582 GB, free: 56.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002339/1.54, allocations: 0.957 MB / 0.7592 GB, free: 56.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002667/1.541, allocations: 33.44 kB / 0.7592 GB, free: 56.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/1.554, allocations: 14.21 MB / 0.7731 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.39e-05/1.554, allocations: 9.156 kB / 0.7731 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/1.565, allocations: 6.976 MB / 0.7799 GB, free: 42.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002343/1.567, allocations: 0.7361 MB / 0.7806 GB, free: 41.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/1.568, allocations: 18.08 kB / 0.7806 GB, free: 41.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002225/1.57, allocations: 151 kB / 0.7808 GB, free: 41.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005017/1.571, allocations: 215.7 kB / 0.781 GB, free: 41.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001905/1.571, allocations: 88.28 kB / 0.7811 GB, free: 41.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002947/1.574, allocations: 1.746 MB / 0.7828 GB, free: 40.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/1.574, allocations: 0 / 0.7828 GB, free: 40.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005487/1.58, allocations: 1.03 MB / 0.7838 GB, free: 40.81 MB / 426.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 (229): * Single equations (assignments): 220 * 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,75.0%) 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.001177/1.581, allocations: 495.3 kB / 0.7842 GB, free: 40.69 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006788/1.588, allocations: 4.484 MB / 0.7886 GB, free: 38.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/1.588, allocations: 4 kB / 0.7886 GB, free: 38.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004104/1.592, allocations: 2.883 MB / 0.7914 GB, free: 37.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003856/1.596, allocations: 0.6089 MB / 0.792 GB, free: 36.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01573/1.611, allocations: 8.397 MB / 0.8002 GB, free: 29.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002982/1.614, allocations: 3.624 MB / 0.8038 GB, free: 27.18 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003183/1.618, allocations: 0.7994 MB / 0.8046 GB, free: 26.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006724/1.618, allocations: 238.3 kB / 0.8048 GB, free: 26.42 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/1.618, allocations: 0 / 0.8048 GB, free: 26.42 MB / 426.7 MB Notification: Performance of Templates: time 0.07321/1.692, allocations: 44.21 MB / 0.848 GB, free: 11.41 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