Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,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.stray.port_p.Phi.im|smee3.stator.stray.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.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,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.stray.port_p.Phi.im|smee3.stator.stray.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.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008731/0.0008735, allocations: 176.2 kB / 17.4 MB, free: 4.418 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.257/1.257, allocations: 223.3 MB / 241.4 MB, free: 11.62 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.0007382/0.0007382, allocations: 102.5 kB / 292.6 MB, free: 10.8 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002957, allocations: 15.92 kB / 352.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1983, allocations: 50.39 MB / 402.8 MB, free: 32.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.309/0.5073, allocations: 125.8 MB / 0.5162 GB, free: 99.99 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/0.5076, allocations: 108 kB / 0.5163 GB, free: 99.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5711/1.079, allocations: 193.6 MB / 0.7054 GB, free: 30.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.935e-06/1.079, allocations: 0 / 0.7054 GB, free: 30.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006568/1.079, allocations: 207.9 kB / 0.7056 GB, free: 30.39 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02418/1.104, allocations: 8.66 MB / 0.714 GB, free: 27.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/1.104, allocations: 11.06 kB / 0.714 GB, free: 27.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/1.114, allocations: 1.915 MB / 0.7159 GB, free: 26.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01622/1.13, allocations: 6.537 MB / 0.7223 GB, free: 25.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006709/1.131, allocations: 0.6384 MB / 0.7229 GB, free: 25.58 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003243/1.134, allocations: 0.8453 MB / 0.7237 GB, free: 25.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02654/1.161, allocations: 11.23 MB / 0.7347 GB, free: 24.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003624/1.161, allocations: 18.91 kB / 0.7347 GB, free: 24.65 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002042/1.163, allocations: 365 kB / 0.7351 GB, free: 24.65 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003166/1.163, allocations: 372.9 kB / 0.7354 GB, free: 24.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01963/1.183, allocations: 9.112 MB / 0.7443 GB, free: 22.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06059/1.244, allocations: 35.95 MB / 0.7794 GB, free: 3.719 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01402/1.258, allocations: 17.03 MB / 0.7961 GB, free: 3.562 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005625/1.263, allocations: 3.559 MB / 0.7995 GB, free: 460 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01605/1.279, allocations: 9.71 MB / 0.809 GB, free: 8.176 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/1.279, allocations: 72.98 kB / 0.8091 GB, free: 8.094 MB / 458.7 MB Notification: Performance of pre-optimization done (n=310): time 4.629e-06/1.28, allocations: 0 / 0.8091 GB, free: 8.094 MB / 458.7 MB Notification: Performance of matching and sorting (n=362): time 0.03053/1.31, allocations: 15.74 MB / 0.8245 GB, free: 10.04 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/1.31, allocations: 90.23 kB / 0.8246 GB, free: 9.934 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006492/1.317, allocations: 4.366 MB / 0.8288 GB, free: 6.254 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002372/1.317, allocations: 89.7 kB / 0.8289 GB, free: 6.16 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002241/1.319, allocations: 3.862 MB / 0.8327 GB, free: 2.723 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008764/1.32, allocations: 1.239 MB / 0.8339 GB, free: 1.613 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/1.32, allocations: 88 kB / 0.834 GB, free: 1.527 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002532/1.321, allocations: 486.2 kB / 0.8344 GB, free: 1.098 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005554/1.326, allocations: 2.134 MB / 0.8365 GB, free: 0 / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2251/1.551, allocations: 3.367 MB / 0.8398 GB, free: 73.29 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0068/1.558, allocations: 5.662 MB / 0.8453 GB, free: 71.59 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.543e-05/1.558, allocations: 13.06 kB / 0.8453 GB, free: 71.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.01006/1.568, allocations: 6.55 MB / 0.8517 GB, free: 71.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/1.568, allocations: 27.19 kB / 0.8518 GB, free: 71.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.938e-05/1.568, allocations: 47.94 kB / 0.8518 GB, free: 71.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001651/1.57, allocations: 0.7287 MB / 0.8525 GB, free: 71.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003409/1.573, allocations: 1.06 MB / 0.8536 GB, free: 71.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009047/1.582, allocations: 10.09 MB / 0.8634 GB, free: 65.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004223/1.587, allocations: 256.4 kB / 0.8637 GB, free: 65.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005462/1.587, allocations: 208.5 kB / 0.8639 GB, free: 65.97 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * 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 (533): * Single equations (assignments): 525 * 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,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004989/1.592, allocations: 2.535 MB / 0.8663 GB, free: 65.86 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/1.593, allocations: 489.8 kB / 0.8668 GB, free: 65.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008607/1.602, allocations: 5.506 MB / 0.8722 GB, free: 65.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-05/1.602, allocations: 36.16 kB / 0.8722 GB, free: 65.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/1.602, allocations: 12.84 kB / 0.8722 GB, free: 65.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.882e-05/1.602, allocations: 17.2 kB / 0.8722 GB, free: 65.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02044/1.623, allocations: 12.95 MB / 0.8849 GB, free: 64.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.531e-05/1.623, allocations: 7.594 kB / 0.8849 GB, free: 64.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00241/1.625, allocations: 0.6149 MB / 0.8855 GB, free: 64.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/1.627, allocations: 0.9017 MB / 0.8864 GB, free: 64.31 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002336/1.627, allocations: 91.67 kB / 0.8865 GB, free: 64.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/1.639, allocations: 14.03 MB / 0.9002 GB, free: 55.75 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.639, allocations: 5.938 kB / 0.9002 GB, free: 55.75 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/1.651, allocations: 8.06 MB / 0.908 GB, free: 52.27 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002484/1.653, allocations: 0.9743 MB / 0.909 GB, free: 51.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007525/1.654, allocations: 72.88 kB / 0.9091 GB, free: 51.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/1.656, allocations: 215.2 kB / 0.9093 GB, free: 51.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005611/1.657, allocations: 275.3 kB / 0.9095 GB, free: 51.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000201/1.657, allocations: 103.2 kB / 0.9096 GB, free: 51.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004219/1.661, allocations: 2.945 MB / 0.9125 GB, free: 50.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.661, allocations: 3.5 kB / 0.9125 GB, free: 50.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005894/1.667, allocations: 1.536 MB / 0.914 GB, free: 50.3 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * 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 (284): * Single equations (assignments): 277 * 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.001292/1.668, allocations: 0.5692 MB / 0.9146 GB, free: 50.13 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008588/1.677, allocations: 5.704 MB / 0.9201 GB, free: 47.58 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/1.677, allocations: 3.531 kB / 0.9201 GB, free: 47.58 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004696/1.682, allocations: 3.447 MB / 0.9235 GB, free: 45.79 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008216/1.69, allocations: 1.098 MB / 0.9246 GB, free: 45.45 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02734/1.717, allocations: 17.93 MB / 0.9421 GB, free: 35.47 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004878/1.722, allocations: 5.071 MB / 0.947 GB, free: 33.73 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004456/1.727, allocations: 1.063 MB / 0.9481 GB, free: 33.59 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009404/1.728, allocations: 323.2 kB / 0.9484 GB, free: 33.57 MB / 474.7 MB Notification: Performance of SimCode: time 7.72e-07/1.728, allocations: 0 / 0.9484 GB, free: 33.57 MB / 474.7 MB Notification: Performance of Templates: time 0.4463/2.174, allocations: 68.87 MB / 1.016 GB, free: 84.2 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMEE_Generator_Polyphase/SMEE_Generator_Polyphase.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches