Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001565/0.001565, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001972/0.001972, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2672, allocations: 50.54 MB / 410 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02589/0.2931, allocations: 24.76 MB / 434.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01573/0.3089, allocations: 7.401 MB / 442.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006327/0.3152, allocations: 147.4 kB / 442.3 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006375/0.3216, allocations: 1.595 MB / 443.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009594/0.3313, allocations: 2.271 MB / 446.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005171/0.3365, allocations: 1.492 MB / 447.6 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01182/0.3484, allocations: 7.25 MB / 454.9 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01042/0.3588, allocations: 5.566 MB / 460.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006328/0.3652, allocations: 3.232 MB / 463.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006963/0.3722, allocations: 3.958 MB / 467.6 MB, free: 7.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002703/0.3749, allocations: 0.8711 MB / 468.5 MB, free: 6.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004067/0.379, allocations: 1.3 MB / 469.8 MB, free: 5.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00316/0.3822, allocations: 2.123 MB / 471.9 MB, free: 3.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009432/0.3917, allocations: 3.788 MB / 475.7 MB, free: 15.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01528/0.407, allocations: 11.52 MB / 487.2 MB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.4071, allocations: 0 / 487.2 MB, free: 3.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4071, allocations: 0 / 487.2 MB, free: 3.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003213/0.4074, allocations: 4 kB / 487.2 MB, free: 3.957 MB / 398.1 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.02302/0.4304, allocations: 7.454 MB / 494.7 MB, free: 12.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.4305, allocations: 12.03 kB / 494.7 MB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007614/0.4381, allocations: 1.25 MB / 496 MB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.4489, allocations: 4.169 MB / 0.4884 GB, free: 6.906 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004463/0.4494, allocations: 431.8 kB / 0.4888 GB, free: 6.484 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001825/0.4512, allocations: 0.5586 MB / 0.4894 GB, free: 5.926 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01775/0.469, allocations: 7.276 MB / 0.4965 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001859/0.4692, allocations: 15.84 kB / 0.4965 GB, free: 14.58 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009873/0.4702, allocations: 232 kB / 0.4967 GB, free: 14.35 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000331/0.4706, allocations: 271.2 kB / 0.497 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01425/0.4848, allocations: 6.127 MB / 0.5029 GB, free: 7.953 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04629/0.5312, allocations: 23.48 MB / 0.5259 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009539/0.5407, allocations: 8.976 MB / 0.5346 GB, free: 5.844 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004746/0.5455, allocations: 2.476 MB / 0.5371 GB, free: 3.359 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2379/0.7834, allocations: 7.514 MB / 0.5444 GB, free: 117.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.7835, allocations: 64.2 kB / 0.5445 GB, free: 117.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.08e-06/0.7835, allocations: 0 / 0.5445 GB, free: 117.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.03122/0.8147, allocations: 13.84 MB / 0.558 GB, free: 112.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/0.8148, allocations: 81.41 kB / 0.558 GB, free: 112.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005107/0.8199, allocations: 3.45 MB / 0.5614 GB, free: 111.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004605/0.8204, allocations: 73.48 kB / 0.5615 GB, free: 111.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0015/0.8219, allocations: 2.693 MB / 0.5641 GB, free: 109 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009202/0.8229, allocations: 0.9599 MB / 0.5651 GB, free: 108 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009128/0.8238, allocations: 0.6368 MB / 0.5657 GB, free: 107.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.446e-05/0.8238, allocations: 301.1 kB / 0.566 GB, free: 107.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.8263, allocations: 1.546 MB / 0.5675 GB, free: 105.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002727/0.829, allocations: 2.756 MB / 0.5702 GB, free: 102.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005291/0.8343, allocations: 4.601 MB / 0.5747 GB, free: 97.08 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-05/0.8344, allocations: 13.53 kB / 0.5747 GB, free: 97.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008401/0.8428, allocations: 5.491 MB / 0.58 GB, free: 91.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/0.8429, allocations: 20 kB / 0.58 GB, free: 91.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.795e-05/0.8429, allocations: 43.94 kB / 0.5801 GB, free: 91.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.8444, allocations: 0.6785 MB / 0.5808 GB, free: 90.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/0.8475, allocations: 0.8541 MB / 0.5816 GB, free: 89.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008091/0.8556, allocations: 10.48 MB / 0.5918 GB, free: 78.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003451/0.859, allocations: 235.6 kB / 0.5921 GB, free: 78.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004575/0.8595, allocations: 164 kB / 0.5922 GB, free: 78.46 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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): 417 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002713/0.8623, allocations: 1.632 MB / 0.5938 GB, free: 76.82 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000897/0.8632, allocations: 391.2 kB / 0.5942 GB, free: 76.44 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006855/0.87, allocations: 4.535 MB / 0.5986 GB, free: 71.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.784e-05/0.8701, allocations: 28 kB / 0.5986 GB, free: 71.75 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.8701, allocations: 11.94 kB / 0.5986 GB, free: 71.74 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-05/0.8701, allocations: 15.95 kB / 0.5987 GB, free: 71.73 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/0.8848, allocations: 9.921 MB / 0.6083 GB, free: 61.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.8848, allocations: 8 kB / 0.6084 GB, free: 61.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/0.8869, allocations: 499.9 kB / 0.6088 GB, free: 61.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00166/0.8885, allocations: 0.7546 MB / 0.6096 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.8887, allocations: 67.97 kB / 0.6096 GB, free: 60.31 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/0.8988, allocations: 14.27 MB / 0.6236 GB, free: 45.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.8988, allocations: 15.88 kB / 0.6236 GB, free: 45.22 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009374/0.9082, allocations: 6.598 MB / 0.63 GB, free: 38.37 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002181/0.9104, allocations: 0.7736 MB / 0.6308 GB, free: 37.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007007/0.9112, allocations: 67.92 kB / 0.6308 GB, free: 37.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/0.9131, allocations: 163.8 kB / 0.631 GB, free: 37.35 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004188/0.9135, allocations: 209.6 kB / 0.6312 GB, free: 37.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/0.9137, allocations: 83.97 kB / 0.6313 GB, free: 37.06 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00285/0.9165, allocations: 2.323 MB / 0.6335 GB, free: 34.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9165, allocations: 0 / 0.6335 GB, free: 34.76 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003658/0.9202, allocations: 1.102 MB / 0.6346 GB, free: 33.66 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006184/0.9208, allocations: 293.9 kB / 0.6349 GB, free: 33.38 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006829/0.9277, allocations: 4.701 MB / 0.6395 GB, free: 28.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.9277, allocations: 0 / 0.6395 GB, free: 28.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003995/0.9317, allocations: 2.858 MB / 0.6423 GB, free: 25.63 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004606/0.9364, allocations: 0.9165 MB / 0.6432 GB, free: 24.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/0.9518, allocations: 10.47 MB / 0.6534 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002506/0.9543, allocations: 3.432 MB / 0.6568 GB, free: 10.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/0.9556, allocations: 291.4 kB / 0.657 GB, free: 10.43 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.9556, allocations: 0 / 0.657 GB, free: 10.43 MB / 462.1 MB Notification: Performance of Templates: time 0.4531/1.409, allocations: 241.7 MB / 0.8931 GB, free: 49.88 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches