Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009148/0.0009148, allocations: 181.1 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.4 MB / 223.6 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007707/0.0007706, allocations: 90.41 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003114/0.0003115, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2107, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3082/0.5189, allocations: 136.2 MB / 0.4999 GB, free: 111.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.5192, allocations: 85.58 kB / 0.5 GB, free: 111.2 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2723/0.7916, allocations: 130.8 MB / 0.6277 GB, free: 4.586 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.7916, allocations: 0 / 0.6277 GB, free: 4.586 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005501/0.7922, allocations: 147.8 kB / 0.6279 GB, free: 4.441 MB / 394.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.01938/0.8116, allocations: 5.981 MB / 0.6337 GB, free: 14.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.8116, allocations: 12.03 kB / 0.6337 GB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006681/0.8183, allocations: 1.156 MB / 0.6349 GB, free: 13.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01163/0.83, allocations: 4.371 MB / 0.6391 GB, free: 8.754 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004647/0.8305, allocations: 427.8 kB / 0.6395 GB, free: 8.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00194/0.8324, allocations: 0.5627 MB / 0.6401 GB, free: 7.773 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01822/0.8507, allocations: 7.256 MB / 0.6472 GB, free: 344 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002256/0.8509, allocations: 19.78 kB / 0.6472 GB, free: 324 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001168/0.8521, allocations: 240 kB / 0.6474 GB, free: 84 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2247/1.077, allocations: 245.2 kB / 0.6476 GB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01343/1.09, allocations: 5.848 MB / 0.6534 GB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04289/1.133, allocations: 23.89 MB / 0.6767 GB, free: 38.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007719/1.141, allocations: 8.793 MB / 0.6853 GB, free: 32.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003942/1.145, allocations: 2.34 MB / 0.6876 GB, free: 32.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01392/1.159, allocations: 7.028 MB / 0.6944 GB, free: 31.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.288e-05/1.159, allocations: 64.59 kB / 0.6945 GB, free: 31.33 MB / 410.7 MB Notification: Performance of pre-optimization done (n=243): time 5.601e-06/1.159, allocations: 0 / 0.6945 GB, free: 31.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=294): time 0.03641/1.195, allocations: 15.89 MB / 0.71 GB, free: 28.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.635e-05/1.196, allocations: 85.44 kB / 0.7101 GB, free: 28.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006324/1.202, allocations: 3.359 MB / 0.7134 GB, free: 26.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005837/1.202, allocations: 76.95 kB / 0.7134 GB, free: 26.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/1.204, allocations: 2.667 MB / 0.716 GB, free: 24.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001026/1.205, allocations: 1.001 MB / 0.717 GB, free: 24.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/1.205, allocations: 75.34 kB / 0.7171 GB, free: 23.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001889/1.206, allocations: 454.2 kB / 0.7175 GB, free: 23.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002598/1.208, allocations: 1.62 MB / 0.7191 GB, free: 23.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002956/1.211, allocations: 2.812 MB / 0.7218 GB, free: 20.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005791/1.217, allocations: 4.745 MB / 0.7265 GB, free: 18.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.724e-05/1.217, allocations: 7.531 kB / 0.7265 GB, free: 18.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.009874/1.227, allocations: 5.697 MB / 0.7321 GB, free: 15.94 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.471e-05/1.227, allocations: 19.06 kB / 0.7321 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.076e-05/1.227, allocations: 45.08 kB / 0.7321 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00192/1.229, allocations: 0.8667 MB / 0.733 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003333/1.232, allocations: 0.8876 MB / 0.7338 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00975/1.242, allocations: 9.796 MB / 0.7434 GB, free: 9.016 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004136/1.246, allocations: 246.2 kB / 0.7436 GB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007064/1.247, allocations: 173.6 kB / 0.7438 GB, free: 8.906 MB / 410.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,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004062/1.251, allocations: 1.629 MB / 0.7454 GB, free: 8.062 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/1.252, allocations: 393.2 kB / 0.7458 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008522/1.261, allocations: 4.841 MB / 0.7505 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/1.261, allocations: 27.53 kB / 0.7505 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-05/1.261, allocations: 7.688 kB / 0.7505 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.801e-05/1.261, allocations: 17.23 kB / 0.7505 GB, free: 5.801 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01865/1.28, allocations: 10.33 MB / 0.7606 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.009377/1.289, allocations: 4.306 MB / 0.7648 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/1.291, allocations: 0.5077 MB / 0.7653 GB, free: 13.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002624/1.294, allocations: 0.9836 MB / 0.7663 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004236/1.295, allocations: 71.73 kB / 0.7664 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01628/1.311, allocations: 14.83 MB / 0.7808 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.311, allocations: 4 kB / 0.7808 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01271/1.324, allocations: 7.091 MB / 0.7878 GB, free: 7.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002427/1.326, allocations: 0.7901 MB / 0.7885 GB, free: 6.754 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008037/1.327, allocations: 63.42 kB / 0.7886 GB, free: 6.695 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001928/1.329, allocations: 193.3 kB / 0.7888 GB, free: 6.551 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005415/1.329, allocations: 213.7 kB / 0.789 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002061/1.33, allocations: 91.02 kB / 0.7891 GB, free: 6.336 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003841/1.333, allocations: 2.257 MB / 0.7913 GB, free: 4.457 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.333, allocations: 4 kB / 0.7913 GB, free: 4.453 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004817/1.338, allocations: 1.208 MB / 0.7925 GB, free: 3.266 MB / 442.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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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,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.001009/1.339, allocations: 0.5019 MB / 0.7929 GB, free: 2.871 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00866/1.348, allocations: 4.984 MB / 0.7978 GB, free: 14.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.348, allocations: 1 kB / 0.7978 GB, free: 14.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005572/1.354, allocations: 3.147 MB / 0.8009 GB, free: 11.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007715/1.361, allocations: 0.8725 MB / 0.8017 GB, free: 10.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2424/1.604, allocations: 12.66 MB / 0.8141 GB, free: 79.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005217/1.609, allocations: 3.452 MB / 0.8175 GB, free: 78.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001776/1.611, allocations: 286.2 kB / 0.8177 GB, free: 78.83 MB / 458.7 MB Notification: Performance of SimCode: time 1.593e-06/1.611, allocations: 0 / 0.8177 GB, free: 78.83 MB / 458.7 MB Notification: Performance of Templates: time 0.4449/2.056, allocations: 226.6 MB / 1.039 GB, free: 89.1 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches