Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009668/0.0009668, allocations: 86.7 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.497e-05/1.481e-05, allocations: 4 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07777/0.0778, allocations: 47.58 MB / 363.1 MB, free: 7.055 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3354/0.4133, allocations: 121.9 MB / 485 MB, free: 6.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.4136, allocations: 88.62 kB / 485.1 MB, free: 6.453 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6229/1.037, allocations: 190.7 MB / 0.6599 GB, free: 23.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.883e-06/1.037, allocations: 3.938 kB / 0.6599 GB, free: 23.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007562/1.037, allocations: 207.8 kB / 0.6601 GB, free: 23.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02522/1.063, allocations: 7.9 MB / 0.6679 GB, free: 15.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/1.063, allocations: 12.02 kB / 0.6679 GB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01119/1.074, allocations: 1.901 MB / 0.6697 GB, free: 13.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01767/1.092, allocations: 7.051 MB / 0.6766 GB, free: 6.605 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005172/1.092, allocations: 284 kB / 0.6769 GB, free: 6.328 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003097/1.095, allocations: 0.5037 MB / 0.6774 GB, free: 5.824 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.313/1.408, allocations: 8.224 MB / 0.6854 GB, free: 32.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0392/1.447, allocations: 9.662 MB / 0.6948 GB, free: 31.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004739/1.448, allocations: 11.73 kB / 0.6949 GB, free: 31.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002893/1.451, allocations: 8.047 kB / 0.6949 GB, free: 31.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004026/1.451, allocations: 367.5 kB / 0.6952 GB, free: 31.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08637/1.538, allocations: 34.42 MB / 0.7288 GB, free: 25.42 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/1.551, allocations: 16.61 MB / 0.745 GB, free: 12.98 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004851/1.556, allocations: 3.23 MB / 0.7482 GB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01727/1.573, allocations: 9.283 MB / 0.7573 GB, free: 25.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.612e-05/1.573, allocations: 71.66 kB / 0.7573 GB, free: 25.76 MB / 426.7 MB Notification: Performance of pre-optimization done (n=298): time 5.59e-06/1.573, allocations: 6.078 kB / 0.7573 GB, free: 25.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=350): time 0.02573/1.599, allocations: 12.13 MB / 0.7692 GB, free: 20.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/1.599, allocations: 92.88 kB / 0.7693 GB, free: 20.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004876/1.604, allocations: 3.16 MB / 0.7724 GB, free: 19.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004914/1.605, allocations: 25.7 kB / 0.7724 GB, free: 19.35 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001848/1.606, allocations: 3.895 MB / 0.7762 GB, free: 16.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009605/1.607, allocations: 1.144 MB / 0.7773 GB, free: 15.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/1.608, allocations: 0 / 0.7773 GB, free: 15.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002498/1.608, allocations: 482.1 kB / 0.7778 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00201/1.61, allocations: 1.64 MB / 0.7794 GB, free: 14.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002831/1.613, allocations: 3.054 MB / 0.7823 GB, free: 11.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004394/1.617, allocations: 2.543 MB / 0.7848 GB, free: 10.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.834e-05/1.617, allocations: 12.5 kB / 0.7848 GB, free: 10.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=576) (initialization): time 0.0107/1.628, allocations: 5.956 MB / 0.7907 GB, free: 8.758 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/1.628, allocations: 24.88 kB / 0.7907 GB, free: 8.758 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-05/1.628, allocations: 52.36 kB / 0.7907 GB, free: 8.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/1.63, allocations: 0.7036 MB / 0.7914 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/1.634, allocations: 1.059 MB / 0.7924 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009988/1.644, allocations: 9.651 MB / 0.8019 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005042/1.649, allocations: 170.6 kB / 0.802 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/1.65, allocations: 201.5 kB / 0.8022 GB, free: 0.9297 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (523): * Single equations (assignments): 515 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001243/1.651, allocations: 241.9 kB / 0.8025 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/1.652, allocations: 447.7 kB / 0.8029 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/1.664, allocations: 5.124 MB / 0.8079 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/1.664, allocations: 38.62 kB / 0.8079 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.616e-05/1.664, allocations: 12.73 kB / 0.8079 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.019e-05/1.664, allocations: 19.5 kB / 0.808 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/1.684, allocations: 11.3 MB / 0.819 GB, free: 9.773 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.08e-05/1.684, allocations: 13.44 kB / 0.819 GB, free: 9.766 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002608/1.686, allocations: 0.6112 MB / 0.8196 GB, free: 9.281 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002141/1.689, allocations: 0.8735 MB / 0.8204 GB, free: 8.559 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/1.689, allocations: 39.11 kB / 0.8205 GB, free: 8.531 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01492/1.704, allocations: 13.47 MB / 0.8336 GB, free: 11.53 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/1.704, allocations: 10.62 kB / 0.8336 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01279/1.717, allocations: 7.953 MB / 0.8414 GB, free: 4.062 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002768/1.719, allocations: 0.8964 MB / 0.8423 GB, free: 3.238 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000897/1.72, allocations: 24 kB / 0.8423 GB, free: 3.215 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002427/1.723, allocations: 155.9 kB / 0.8425 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006423/1.723, allocations: 268.2 kB / 0.8427 GB, free: 2.949 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002561/1.724, allocations: 102.1 kB / 0.8428 GB, free: 2.855 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00405/1.728, allocations: 2.321 MB / 0.8451 GB, free: 0.7773 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.728, allocations: 4 kB / 0.8451 GB, free: 0.7734 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009273/1.737, allocations: 1.599 MB / 0.8466 GB, free: 0 / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 266 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2581/1.995, allocations: 0.5055 MB / 0.8471 GB, free: 74.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00835/2.004, allocations: 5.019 MB / 0.852 GB, free: 73.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/2.004, allocations: 2.672 kB / 0.852 GB, free: 73.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005187/2.009, allocations: 3.123 MB / 0.8551 GB, free: 73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005594/2.014, allocations: 0.7538 MB / 0.8558 GB, free: 72.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02986/2.044, allocations: 11.84 MB / 0.8674 GB, free: 70.35 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007036/2.051, allocations: 5.226 MB / 0.8725 GB, free: 69.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004295/2.056, allocations: 0.9896 MB / 0.8735 GB, free: 69.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009002/2.057, allocations: 293.4 kB / 0.8737 GB, free: 69.32 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/2.057, allocations: 0 / 0.8737 GB, free: 69.32 MB / 458.7 MB Notification: Performance of Templates: time 0.0873/2.144, allocations: 53.05 MB / 0.9255 GB, free: 66.15 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator_MultiPhase/SMEE_Generator_MultiPhase.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches