Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.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.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_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001036, allocations: 198.5 kB / 18.06 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 226.5 MB / 245.4 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007931/0.0007933, allocations: 108.1 kB / 297.4 MB, free: 6.855 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002333/0.0002333, allocations: 4 kB / 357.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1893, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3187/0.5081, allocations: 138.6 MB / 0.5344 GB, free: 46.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.5084, allocations: 96.97 kB / 0.5345 GB, free: 46.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2921/0.8005, allocations: 134.6 MB / 0.666 GB, free: 12.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.8006, allocations: 0 / 0.666 GB, free: 12.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004368/0.801, allocations: 139.9 kB / 0.6661 GB, free: 12.22 MB / 458.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.01698/0.818, allocations: 6.028 MB / 0.672 GB, free: 6.109 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.8181, allocations: 8.031 kB / 0.672 GB, free: 6.102 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006265/0.8244, allocations: 1.203 MB / 0.6732 GB, free: 4.891 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009901/0.8343, allocations: 4.41 MB / 0.6775 GB, free: 412 kB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1948/1.029, allocations: 422.9 kB / 0.6779 GB, free: 59.35 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00221/1.031, allocations: 0.5546 MB / 0.6784 GB, free: 59.35 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01491/1.046, allocations: 7.261 MB / 0.6855 GB, free: 58.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000145/1.046, allocations: 8.891 kB / 0.6855 GB, free: 58.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005447/1.047, allocations: 243.1 kB / 0.6858 GB, free: 58.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001768/1.047, allocations: 245.1 kB / 0.686 GB, free: 58.69 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01047/1.058, allocations: 5.861 MB / 0.6917 GB, free: 58.64 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03343/1.091, allocations: 23.95 MB / 0.7151 GB, free: 53.74 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006165/1.097, allocations: 9.07 MB / 0.724 GB, free: 47.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002999/1.1, allocations: 2.357 MB / 0.7263 GB, free: 47.64 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/1.111, allocations: 7.598 MB / 0.7337 GB, free: 45.64 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/1.111, allocations: 61.69 kB / 0.7338 GB, free: 45.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=243): time 4.829e-06/1.111, allocations: 0 / 0.7338 GB, free: 45.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=294): time 0.03701/1.148, allocations: 15.99 MB / 0.7494 GB, free: 40.85 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/1.148, allocations: 82.47 kB / 0.7495 GB, free: 40.79 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005708/1.154, allocations: 3.375 MB / 0.7528 GB, free: 39.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006164/1.154, allocations: 80.23 kB / 0.7528 GB, free: 39.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001565/1.156, allocations: 2.672 MB / 0.7554 GB, free: 37.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009305/1.157, allocations: 1.006 MB / 0.7564 GB, free: 36.82 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002068/1.157, allocations: 75.06 kB / 0.7565 GB, free: 36.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001942/1.157, allocations: 456 kB / 0.7569 GB, free: 36.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002548/1.16, allocations: 1.612 MB / 0.7585 GB, free: 35.81 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002959/1.163, allocations: 2.818 MB / 0.7613 GB, free: 33.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006214/1.169, allocations: 4.741 MB / 0.7659 GB, free: 30.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.044e-05/1.169, allocations: 11.56 kB / 0.7659 GB, free: 30.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.009921/1.179, allocations: 5.707 MB / 0.7715 GB, free: 28.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.104e-05/1.179, allocations: 18.62 kB / 0.7715 GB, free: 28.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.833e-05/1.179, allocations: 43.06 kB / 0.7715 GB, free: 28.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002058/1.181, allocations: 0.87 MB / 0.7724 GB, free: 28.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00326/1.185, allocations: 0.876 MB / 0.7732 GB, free: 28.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009947/1.195, allocations: 9.824 MB / 0.7828 GB, free: 21.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003967/1.199, allocations: 238.5 kB / 0.7831 GB, free: 21.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005454/1.199, allocations: 167 kB / 0.7832 GB, free: 21.63 MB / 458.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.004234/1.203, allocations: 1.625 MB / 0.7848 GB, free: 20.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.205, allocations: 392 kB / 0.7852 GB, free: 20.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007895/1.212, allocations: 4.837 MB / 0.7899 GB, free: 18.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/1.212, allocations: 27.97 kB / 0.7899 GB, free: 18.52 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-05/1.212, allocations: 19.16 kB / 0.7899 GB, free: 18.52 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.419e-05/1.213, allocations: 14.48 kB / 0.79 GB, free: 18.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/1.229, allocations: 10.33 MB / 0.8 GB, free: 14.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005876/1.235, allocations: 4.103 MB / 0.8041 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/1.237, allocations: 0.5002 MB / 0.8045 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002279/1.24, allocations: 0.9747 MB / 0.8055 GB, free: 10.11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002194/1.24, allocations: 78.59 kB / 0.8056 GB, free: 10.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/1.253, allocations: 14.82 MB / 0.82 GB, free: 11.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/1.253, allocations: 4 kB / 0.82 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01207/1.265, allocations: 6.984 MB / 0.8269 GB, free: 5.246 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002327/1.268, allocations: 0.7863 MB / 0.8276 GB, free: 4.523 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007189/1.268, allocations: 63.28 kB / 0.8277 GB, free: 4.465 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001966/1.27, allocations: 196.4 kB / 0.8279 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005198/1.271, allocations: 218.8 kB / 0.8281 GB, free: 4.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001999/1.271, allocations: 86.98 kB / 0.8282 GB, free: 4.102 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003763/1.275, allocations: 2.26 MB / 0.8304 GB, free: 2.219 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.41e-07/1.275, allocations: 0 / 0.8304 GB, free: 2.219 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005063/1.28, allocations: 1.223 MB / 0.8316 GB, free: 1.02 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.001029/1.281, allocations: 0.5228 MB / 0.8321 GB, free: 0.5977 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01087/1.292, allocations: 5.206 MB / 0.8372 GB, free: 12.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/1.292, allocations: 4 kB / 0.8372 GB, free: 12.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005277/1.297, allocations: 3.115 MB / 0.8402 GB, free: 9.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007104/1.304, allocations: 0.8736 MB / 0.8411 GB, free: 8.984 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2521/1.556, allocations: 12.69 MB / 0.8535 GB, free: 78.15 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003834/1.56, allocations: 3.449 MB / 0.8568 GB, free: 77.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/1.562, allocations: 285.5 kB / 0.8571 GB, free: 77.37 MB / 490.7 MB Notification: Performance of SimCode: time 9.12e-07/1.562, allocations: 0 / 0.8571 GB, free: 77.37 MB / 490.7 MB Notification: Performance of Templates: time 0.4774/2.039, allocations: 227.4 MB / 1.079 GB, free: 89.25 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches