Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 114.8 kB / 17.75 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 184.5 kB / 18.67 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 51.92 kB / 352 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2697, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02401/0.2937, allocations: 24.11 MB / 425.6 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.3074, allocations: 7.124 MB / 432.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003979/0.3114, allocations: 143.5 kB / 432.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00494/0.3164, allocations: 1.587 MB / 434.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007867/0.3243, allocations: 2.293 MB / 436.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004373/0.3287, allocations: 1.442 MB / 438.1 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00985/0.3386, allocations: 7.194 MB / 445.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008928/0.3475, allocations: 5.555 MB / 450.9 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005265/0.3528, allocations: 3.208 MB / 454.1 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006373/0.3592, allocations: 3.833 MB / 457.9 MB, free: 68 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00271/0.3619, allocations: 0.875 MB / 458.8 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004093/0.366, allocations: 1.3 MB / 460.1 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003496/0.3696, allocations: 2.135 MB / 462.2 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007574/0.3772, allocations: 3.773 MB / 466 MB, free: 7.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01473/0.3919, allocations: 11.48 MB / 477.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.392, allocations: 3.984 kB / 477.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.392, allocations: 0 / 477.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003524/0.3923, allocations: 0 / 477.5 MB, free: 12.45 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.0221/0.4145, allocations: 7.419 MB / 484.9 MB, free: 4.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.4145, allocations: 8.031 kB / 484.9 MB, free: 4.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006904/0.4214, allocations: 1.219 MB / 486.1 MB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009285/0.4307, allocations: 4.129 MB / 490.3 MB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003862/0.4312, allocations: 431.8 kB / 490.7 MB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001691/0.4329, allocations: 0.5585 MB / 491.3 MB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01629/0.4492, allocations: 7.276 MB / 498.5 MB, free: 7.191 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.4493, allocations: 15.91 kB / 498.5 MB, free: 7.176 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006135/0.4499, allocations: 232 kB / 498.8 MB, free: 6.949 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002472/0.4502, allocations: 271.2 kB / 499 MB, free: 6.684 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.4636, allocations: 6.123 MB / 0.4933 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0418/0.5055, allocations: 23.39 MB / 0.5162 GB, free: 8.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008944/0.5144, allocations: 8.715 MB / 0.5247 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004202/0.5187, allocations: 2.367 MB / 0.527 GB, free: 12.49 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01276/0.5315, allocations: 6.922 MB / 0.5337 GB, free: 5.344 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.5316, allocations: 60.56 kB / 0.5338 GB, free: 5.273 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.891e-06/0.5316, allocations: 0 / 0.5338 GB, free: 5.273 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.2628/0.7944, allocations: 13.69 MB / 0.5472 GB, free: 123.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.7944, allocations: 81.22 kB / 0.5472 GB, free: 123.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004501/0.799, allocations: 3.412 MB / 0.5506 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003458/0.7993, allocations: 76.41 kB / 0.5507 GB, free: 121.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00148/0.8008, allocations: 2.682 MB / 0.5533 GB, free: 119.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007288/0.8015, allocations: 0.9625 MB / 0.5542 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008155/0.8024, allocations: 0.641 MB / 0.5548 GB, free: 118.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.8024, allocations: 305.1 kB / 0.5551 GB, free: 118.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/0.8049, allocations: 1.547 MB / 0.5566 GB, free: 117.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002806/0.8077, allocations: 2.755 MB / 0.5593 GB, free: 115.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004965/0.8127, allocations: 4.597 MB / 0.5638 GB, free: 112.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.05e-05/0.8127, allocations: 10.94 kB / 0.5638 GB, free: 112.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008014/0.8207, allocations: 5.474 MB / 0.5692 GB, free: 108.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.839e-05/0.8208, allocations: 24 kB / 0.5692 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.205e-05/0.8208, allocations: 36.66 kB / 0.5692 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.8222, allocations: 0.6628 MB / 0.5699 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/0.8251, allocations: 0.8502 MB / 0.5707 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007711/0.8328, allocations: 10.34 MB / 0.5808 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/0.8364, allocations: 227.6 kB / 0.581 GB, free: 95.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003033/0.8367, allocations: 167 kB / 0.5812 GB, free: 95.27 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 (430): * Single equations (assignments): 420 * 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,3,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.002711/0.8394, allocations: 1.623 MB / 0.5828 GB, free: 93.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007801/0.8402, allocations: 391.3 kB / 0.5831 GB, free: 93.25 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006303/0.8465, allocations: 4.498 MB / 0.5875 GB, free: 88.63 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.49e-05/0.8466, allocations: 35.92 kB / 0.5876 GB, free: 88.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.8466, allocations: 8 kB / 0.5876 GB, free: 88.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.8466, allocations: 11.95 kB / 0.5876 GB, free: 88.58 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.8594, allocations: 9.885 MB / 0.5972 GB, free: 78.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.8594, allocations: 4 kB / 0.5972 GB, free: 78.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/0.8613, allocations: 0.4921 MB / 0.5977 GB, free: 78.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.8629, allocations: 0.7307 MB / 0.5984 GB, free: 77.27 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001537/0.863, allocations: 70.97 kB / 0.5985 GB, free: 77.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009435/0.8725, allocations: 14.12 MB / 0.6123 GB, free: 62.28 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.8725, allocations: 4 kB / 0.6123 GB, free: 62.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00865/0.8812, allocations: 6.592 MB / 0.6187 GB, free: 55.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/0.8828, allocations: 0.7734 MB / 0.6195 GB, free: 54.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005207/0.8834, allocations: 63.98 kB / 0.6196 GB, free: 54.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/0.8852, allocations: 167.8 kB / 0.6197 GB, free: 54.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004046/0.8856, allocations: 213.5 kB / 0.6199 GB, free: 54.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.8858, allocations: 83.97 kB / 0.62 GB, free: 54.12 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002782/0.8885, allocations: 2.306 MB / 0.6223 GB, free: 51.83 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8885, allocations: 0 / 0.6223 GB, free: 51.83 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003406/0.892, allocations: 1.092 MB / 0.6233 GB, free: 50.75 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 (238): * Single equations (assignments): 228 * 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,3,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.0005891/0.8926, allocations: 287.7 kB / 0.6236 GB, free: 50.46 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006621/0.8992, allocations: 4.7 MB / 0.6282 GB, free: 45.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.8992, allocations: 0 / 0.6282 GB, free: 45.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003671/0.9029, allocations: 2.839 MB / 0.631 GB, free: 42.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004042/0.907, allocations: 0.9058 MB / 0.6318 GB, free: 41.85 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/0.9211, allocations: 10.44 MB / 0.642 GB, free: 31.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002357/0.9235, allocations: 3.428 MB / 0.6454 GB, free: 27.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/0.9247, allocations: 283.4 kB / 0.6457 GB, free: 27.58 MB / 462.1 MB Notification: Performance of SimCode: time 1.572e-06/0.9247, allocations: 0 / 0.6457 GB, free: 27.58 MB / 462.1 MB Notification: Performance of Templates: time 0.3973/1.322, allocations: 239.8 MB / 0.8799 GB, free: 43.53 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches