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.00161/0.00161, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001853/0.001853, allocations: 198 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 59.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2621, allocations: 50.55 MB / 409.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02415/0.2863, allocations: 24.76 MB / 434 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01599/0.3024, allocations: 7.405 MB / 441.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005173/0.3076, allocations: 151.4 kB / 441.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005286/0.3129, allocations: 1.599 MB / 443.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008363/0.3213, allocations: 2.263 MB / 445.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004686/0.326, allocations: 1.492 MB / 446.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01108/0.3371, allocations: 7.25 MB / 454.2 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007474/0.3446, allocations: 5.566 MB / 459.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005025/0.3497, allocations: 3.236 MB / 463 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006462/0.3562, allocations: 3.954 MB / 466.9 MB, free: 7.605 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002526/0.3587, allocations: 0.8711 MB / 467.8 MB, free: 6.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004855/0.3636, allocations: 1.292 MB / 469.1 MB, free: 5.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003323/0.367, allocations: 2.131 MB / 471.2 MB, free: 3.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006705/0.3737, allocations: 3.792 MB / 475 MB, free: 15.49 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01356/0.3873, allocations: 11.52 MB / 486.6 MB, free: 3.945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3873, allocations: 0 / 486.6 MB, free: 3.945 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3873, allocations: 0 / 486.6 MB, free: 3.945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003642/0.3877, allocations: 4 kB / 486.6 MB, free: 3.941 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.02241/0.4101, allocations: 7.461 MB / 494 MB, free: 12.4 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.4102, allocations: 8.031 kB / 494 MB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006343/0.4166, allocations: 1.25 MB / 495.3 MB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009539/0.4261, allocations: 4.173 MB / 499.4 MB, free: 6.887 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003628/0.4265, allocations: 431.8 kB / 499.9 MB, free: 6.465 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001738/0.4283, allocations: 0.5586 MB / 0.4887 GB, free: 5.906 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01636/0.4446, allocations: 7.276 MB / 0.4958 GB, free: 14.57 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.4448, allocations: 15.84 kB / 0.4958 GB, free: 14.56 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005451/0.4454, allocations: 231.9 kB / 0.496 GB, free: 14.33 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002555/0.4456, allocations: 259.3 kB / 0.4963 GB, free: 14.08 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/0.4575, allocations: 6.131 MB / 0.5023 GB, free: 7.941 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04014/0.4976, allocations: 23.49 MB / 0.5252 GB, free: 15.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0086/0.5063, allocations: 8.976 MB / 0.534 GB, free: 5.824 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004222/0.5105, allocations: 2.48 MB / 0.5364 GB, free: 3.336 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2142/0.7248, allocations: 7.511 MB / 0.5437 GB, free: 117.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.7249, allocations: 60.44 kB / 0.5438 GB, free: 117.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 4.579e-06/0.7249, allocations: 3.172 kB / 0.5438 GB, free: 117.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.0307/0.7556, allocations: 13.83 MB / 0.5573 GB, free: 112.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.7557, allocations: 81.53 kB / 0.5574 GB, free: 112.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004201/0.7599, allocations: 3.454 MB / 0.5607 GB, free: 111.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002524/0.7601, allocations: 72.83 kB / 0.5608 GB, free: 111.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.7613, allocations: 2.69 MB / 0.5634 GB, free: 108.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005591/0.7619, allocations: 0.963 MB / 0.5644 GB, free: 108 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007907/0.7627, allocations: 0.6372 MB / 0.565 GB, free: 107.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.828e-05/0.7627, allocations: 301.1 kB / 0.5653 GB, free: 107.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/0.7649, allocations: 1.545 MB / 0.5668 GB, free: 105.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002486/0.7674, allocations: 2.753 MB / 0.5695 GB, free: 102.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004806/0.7722, allocations: 4.601 MB / 0.574 GB, free: 97.05 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/0.7722, allocations: 16 kB / 0.574 GB, free: 97.03 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.007762/0.78, allocations: 5.495 MB / 0.5794 GB, free: 91.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.78, allocations: 20.62 kB / 0.5794 GB, free: 91.42 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-05/0.7801, allocations: 40 kB / 0.5794 GB, free: 91.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001381/0.7815, allocations: 0.6786 MB / 0.5801 GB, free: 90.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002857/0.7844, allocations: 0.854 MB / 0.5809 GB, free: 89.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008156/0.7925, allocations: 10.5 MB / 0.5912 GB, free: 78.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/0.7964, allocations: 223.6 kB / 0.5914 GB, free: 78.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004276/0.7968, allocations: 172 kB / 0.5916 GB, free: 78.43 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.00264/0.7995, allocations: 1.632 MB / 0.5931 GB, free: 76.79 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008243/0.8003, allocations: 396.1 kB / 0.5935 GB, free: 76.39 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006639/0.807, allocations: 4.526 MB / 0.5979 GB, free: 71.75 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-05/0.807, allocations: 28 kB / 0.598 GB, free: 71.72 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.807, allocations: 11.94 kB / 0.598 GB, free: 71.71 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/0.8071, allocations: 15.94 kB / 0.598 GB, free: 71.69 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01343/0.8205, allocations: 9.932 MB / 0.6077 GB, free: 61.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.8205, allocations: 4 kB / 0.6077 GB, free: 61.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.8225, allocations: 0.4921 MB / 0.6082 GB, free: 61.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001603/0.8241, allocations: 0.7457 MB / 0.6089 GB, free: 60.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001699/0.8243, allocations: 67.97 kB / 0.609 GB, free: 60.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009901/0.8342, allocations: 14.26 MB / 0.6229 GB, free: 45.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.8342, allocations: 15.72 kB / 0.6229 GB, free: 45.19 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009189/0.8434, allocations: 6.603 MB / 0.6294 GB, free: 38.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/0.8452, allocations: 0.7697 MB / 0.6301 GB, free: 37.54 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000605/0.8458, allocations: 71.67 kB / 0.6302 GB, free: 37.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001957/0.8478, allocations: 163.8 kB / 0.6303 GB, free: 37.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004597/0.8482, allocations: 213.7 kB / 0.6305 GB, free: 37.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/0.8484, allocations: 83.98 kB / 0.6306 GB, free: 37.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002916/0.8513, allocations: 2.323 MB / 0.6329 GB, free: 34.72 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.8513, allocations: 0 / 0.6329 GB, free: 34.72 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003789/0.8551, allocations: 1.098 MB / 0.634 GB, free: 33.63 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.0006438/0.8558, allocations: 295.3 kB / 0.6342 GB, free: 33.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006633/0.8624, allocations: 4.693 MB / 0.6388 GB, free: 28.54 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.8625, allocations: 0.875 kB / 0.6388 GB, free: 28.54 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004104/0.8666, allocations: 2.862 MB / 0.6416 GB, free: 25.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004361/0.871, allocations: 0.9188 MB / 0.6425 GB, free: 24.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.8856, allocations: 10.45 MB / 0.6527 GB, free: 14.15 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002412/0.888, allocations: 3.518 MB / 0.6562 GB, free: 10.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002586/0.8906, allocations: 0.8526 MB / 0.657 GB, free: 9.742 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007294/0.8914, allocations: 263.4 kB / 0.6572 GB, free: 9.484 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8914, allocations: 0 / 0.6572 GB, free: 9.484 MB / 462.1 MB Notification: Performance of Templates: time 0.08779/0.9792, allocations: 51.86 MB / 0.7079 GB, free: 6.152 MB / 0.4981 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/jenkins/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/jenkins/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