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.001504/0.001504, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001693/0.001694, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 247.5 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 63.73 kB / 307.7 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1025, allocations: 50.53 MB / 358.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2039/0.3064, allocations: 24.75 MB / 383 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.3205, allocations: 7.406 MB / 390.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004938/0.3255, allocations: 146.1 kB / 390.5 MB, free: 3.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005202/0.3307, allocations: 1.593 MB / 392.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008497/0.3393, allocations: 2.269 MB / 394.4 MB, free: 1.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004326/0.3436, allocations: 1.486 MB / 395.8 MB, free: 124 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.3553, allocations: 7.225 MB / 403.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008314/0.3636, allocations: 5.563 MB / 408.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006305/0.37, allocations: 3.197 MB / 411.8 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007769/0.3778, allocations: 3.954 MB / 415.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002818/0.3807, allocations: 0.8711 MB / 416.7 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00478/0.3855, allocations: 1.308 MB / 418 MB, free: 452 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003353/0.3888, allocations: 2.135 MB / 420.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007269/0.3961, allocations: 3.796 MB / 423.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01522/0.4114, allocations: 11.41 MB / 435.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-05/0.4115, allocations: 0 / 435.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4115, allocations: 3.938 kB / 435.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003296/0.4118, allocations: 4 kB / 435.3 MB, free: 15.03 MB / 350.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.02168/0.4335, allocations: 7.455 MB / 442.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.4336, allocations: 12.03 kB / 442.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007341/0.4409, allocations: 1.23 MB / 444 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009489/0.4505, allocations: 4.06 MB / 448.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005036/0.451, allocations: 444.1 kB / 448.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001751/0.4528, allocations: 0.5583 MB / 449.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01763/0.4704, allocations: 7.299 MB / 456.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/0.4707, allocations: 7.906 kB / 456.4 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009975/0.4717, allocations: 232 kB / 456.6 MB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003193/0.472, allocations: 263.3 kB / 456.9 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0145/0.4865, allocations: 6.127 MB / 463 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05/0.5365, allocations: 23.78 MB / 486.8 MB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.5477, allocations: 8.984 MB / 495.7 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005254/0.553, allocations: 2.477 MB / 498.2 MB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01641/0.5694, allocations: 7.557 MB / 0.4939 GB, free: 6.324 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.749e-05/0.5695, allocations: 56.56 kB / 0.494 GB, free: 6.262 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 4.859e-06/0.5696, allocations: 3.938 kB / 0.494 GB, free: 6.258 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03941/0.609, allocations: 13.85 MB / 0.5075 GB, free: 8.199 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.881e-05/0.6091, allocations: 81.59 kB / 0.5076 GB, free: 8.105 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007178/0.6163, allocations: 3.457 MB / 0.511 GB, free: 4.664 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005834/0.6169, allocations: 69.7 kB / 0.511 GB, free: 4.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002538/0.6195, allocations: 2.69 MB / 0.5136 GB, free: 1.867 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00135/0.6209, allocations: 0.9628 MB / 0.5146 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00196/0.6228, allocations: 0.6411 MB / 0.5152 GB, free: 248 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.623, allocations: 305.1 kB / 0.5155 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003314/0.6263, allocations: 1.545 MB / 0.517 GB, free: 14.39 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004403/0.6308, allocations: 2.756 MB / 0.5197 GB, free: 11.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008161/0.6389, allocations: 4.602 MB / 0.5242 GB, free: 5.926 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.073e-05/0.639, allocations: 16 kB / 0.5242 GB, free: 5.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01277/0.6518, allocations: 5.495 MB / 0.5296 GB, free: 316 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.61e-05/0.6519, allocations: 23.94 kB / 0.5296 GB, free: 292 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.423e-05/0.652, allocations: 40 kB / 0.5296 GB, free: 252 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1875/0.8396, allocations: 0.6805 MB / 0.5303 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00378/0.8434, allocations: 0.852 MB / 0.5311 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.8536, allocations: 10.49 MB / 0.5414 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003827/0.8575, allocations: 229.1 kB / 0.5416 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005004/0.858, allocations: 167 kB / 0.5418 GB, free: 130.5 MB / 446.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.003342/0.8614, allocations: 1.62 MB / 0.5433 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001126/0.8625, allocations: 397.9 kB / 0.5437 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008556/0.8711, allocations: 4.527 MB / 0.5481 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.842e-05/0.8712, allocations: 31.36 kB / 0.5482 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-05/0.8712, allocations: 8.281 kB / 0.5482 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-05/0.8713, allocations: 15.02 kB / 0.5482 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/0.8881, allocations: 9.949 MB / 0.5579 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/0.8881, allocations: 11.84 kB / 0.5579 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002003/0.8901, allocations: 0.4923 MB / 0.5584 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001745/0.8919, allocations: 0.7609 MB / 0.5591 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002403/0.8922, allocations: 74.69 kB / 0.5592 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/0.903, allocations: 14.28 MB / 0.5732 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.903, allocations: 7.812 kB / 0.5732 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009773/0.9128, allocations: 6.623 MB / 0.5796 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/0.9148, allocations: 0.7667 MB / 0.5804 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008049/0.9157, allocations: 65.27 kB / 0.5805 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002134/0.9178, allocations: 164.1 kB / 0.5806 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004199/0.9182, allocations: 205.8 kB / 0.5808 GB, free: 107.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001619/0.9184, allocations: 83.97 kB / 0.5809 GB, free: 107.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00338/0.9218, allocations: 2.327 MB / 0.5832 GB, free: 105.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.9218, allocations: 3.938 kB / 0.5832 GB, free: 105.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004524/0.9263, allocations: 1.107 MB / 0.5842 GB, free: 104.2 MB / 446.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.0007893/0.9272, allocations: 297.8 kB / 0.5845 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01336/0.9405, allocations: 6.658 MB / 0.591 GB, free: 97.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/0.9406, allocations: 4 kB / 0.591 GB, free: 97.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004209/0.9448, allocations: 2.861 MB / 0.5938 GB, free: 94.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004559/0.9494, allocations: 0.9289 MB / 0.5947 GB, free: 93.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01778/0.9672, allocations: 10.55 MB / 0.605 GB, free: 82.67 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003101/0.9704, allocations: 3.437 MB / 0.6084 GB, free: 79.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.9717, allocations: 299.4 kB / 0.6087 GB, free: 78.91 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.9717, allocations: 0 / 0.6087 GB, free: 78.91 MB / 446.1 MB Notification: Performance of Templates: time 0.39/1.362, allocations: 240.5 MB / 0.8435 GB, free: 21.72 MB / 462.1 MB 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.1.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