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.001055/0.001055, allocations: 109 kB / 17.16 MB, free: 6.082 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.001145/0.001145, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 52.61 kB / 300.6 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1081, allocations: 49.44 MB / 350.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1955/0.3036, allocations: 23.78 MB / 373.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.3195, allocations: 7.046 MB / 380.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005897/0.3255, allocations: 136.1 kB / 381 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006086/0.3316, allocations: 1.344 MB / 382.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009333/0.341, allocations: 2.072 MB / 384.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004475/0.3455, allocations: 1.307 MB / 385.8 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.357, allocations: 7.774 MB / 393.5 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006553/0.3636, allocations: 4.635 MB / 398.2 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004987/0.3687, allocations: 2.664 MB / 400.8 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006319/0.375, allocations: 3.582 MB / 404.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001856/0.3769, allocations: 0.5156 MB / 404.9 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003965/0.3809, allocations: 0.9637 MB / 405.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001957/0.3828, allocations: 1.755 MB / 407.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0064/0.3893, allocations: 3.39 MB / 411 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.3997, allocations: 9.547 MB / 420.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-05/0.3997, allocations: 3.984 kB / 420.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3997, allocations: 7.938 kB / 420.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003385/0.4001, allocations: 0 / 420.6 MB, free: 14.38 MB / 334.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.02062/0.4207, allocations: 7.394 MB / 428 MB, free: 6.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.4208, allocations: 8.031 kB / 428 MB, free: 6.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006787/0.4276, allocations: 1.226 MB / 429.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009687/0.4373, allocations: 3.823 MB / 433 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006828/0.438, allocations: 435.7 kB / 433.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002523/0.4406, allocations: 0.5612 MB / 434 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02041/0.461, allocations: 7.298 MB / 441.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003022/0.4614, allocations: 15.91 kB / 441.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001716/0.4631, allocations: 238 kB / 441.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003147/0.4634, allocations: 263.3 kB / 441.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01561/0.479, allocations: 6.146 MB / 448 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05089/0.53, allocations: 23.79 MB / 471.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009026/0.539, allocations: 8.743 MB / 480.5 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004236/0.5433, allocations: 2.403 MB / 482.9 MB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.5575, allocations: 7.004 MB / 489.9 MB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.942e-05/0.5576, allocations: 56.56 kB / 490 MB, free: 7.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 5.48e-06/0.5576, allocations: 0 / 490 MB, free: 7.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.0381/0.5957, allocations: 13.89 MB / 0.4921 GB, free: 9.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.588e-05/0.5958, allocations: 81.53 kB / 0.4921 GB, free: 9.156 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006657/0.6025, allocations: 3.49 MB / 0.4955 GB, free: 5.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004653/0.603, allocations: 73.7 kB / 0.4956 GB, free: 5.602 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/0.6051, allocations: 2.675 MB / 0.4982 GB, free: 2.906 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001168/0.6063, allocations: 0.9593 MB / 0.4992 GB, free: 1.957 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001478/0.6078, allocations: 0.6478 MB / 0.4998 GB, free: 1.305 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.6079, allocations: 305.1 kB / 0.5001 GB, free: 1.004 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002899/0.6108, allocations: 1.557 MB / 0.5016 GB, free: 15.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003837/0.6147, allocations: 2.767 MB / 0.5043 GB, free: 12.14 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007093/0.6218, allocations: 4.625 MB / 0.5088 GB, free: 6.949 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.334e-05/0.6218, allocations: 12 kB / 0.5088 GB, free: 6.938 MB / 430.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01102/0.6329, allocations: 5.518 MB / 0.5142 GB, free: 1.316 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/0.633, allocations: 27.12 kB / 0.5143 GB, free: 1.293 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.102e-05/0.633, allocations: 40 kB / 0.5143 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001756/0.6348, allocations: 0.6797 MB / 0.515 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/0.6382, allocations: 0.858 MB / 0.5158 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.6489, allocations: 9.61 MB / 0.5252 GB, free: 5.555 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003865/0.6528, allocations: 222.8 kB / 0.5254 GB, free: 5.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007101/0.6535, allocations: 168 kB / 0.5256 GB, free: 5.176 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (429): * Single equations (assignments): 419 * 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.003927/0.6575, allocations: 1.625 MB / 0.5271 GB, free: 3.539 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001286/0.6588, allocations: 387.3 kB / 0.5275 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2107/0.8695, allocations: 4.547 MB / 0.5319 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-05/0.8696, allocations: 31.27 kB / 0.532 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.482e-05/0.8696, allocations: 7.719 kB / 0.532 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.917e-05/0.8697, allocations: 13.31 kB / 0.532 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02115/0.8909, allocations: 10.02 MB / 0.5418 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.268e-05/0.8909, allocations: 11.25 kB / 0.5418 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/0.8934, allocations: 0.4955 MB / 0.5423 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/0.8954, allocations: 0.7448 MB / 0.543 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004231/0.8959, allocations: 77.56 kB / 0.5431 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/0.9073, allocations: 13.04 MB / 0.5558 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.301e-06/0.9073, allocations: 5.312 kB / 0.5558 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01094/0.9182, allocations: 6.672 MB / 0.5623 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/0.9206, allocations: 0.777 MB / 0.5631 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008957/0.9215, allocations: 66.52 kB / 0.5632 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002256/0.9238, allocations: 172.4 kB / 0.5633 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004709/0.9243, allocations: 208.1 kB / 0.5635 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.9245, allocations: 82.72 kB / 0.5636 GB, free: 123.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003827/0.9283, allocations: 2.352 MB / 0.5659 GB, free: 122.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.9283, allocations: 0 / 0.5659 GB, free: 122.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004709/0.933, allocations: 1.117 MB / 0.567 GB, free: 122.3 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 (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.00085/0.9339, allocations: 287.5 kB / 0.5673 GB, free: 122.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00721/0.9411, allocations: 4.716 MB / 0.5719 GB, free: 120 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/0.9412, allocations: 0 / 0.5719 GB, free: 120 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004501/0.9457, allocations: 2.855 MB / 0.5746 GB, free: 118.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00507/0.9508, allocations: 0.8546 MB / 0.5755 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/0.9695, allocations: 13 MB / 0.5882 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00307/0.9726, allocations: 3.424 MB / 0.5915 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/0.9742, allocations: 287.4 kB / 0.5918 GB, free: 101.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.193e-06/0.9742, allocations: 4 kB / 0.5918 GB, free: 101.9 MB / 446.1 MB Notification: Performance of Templates: time 0.4201/1.394, allocations: 239.6 MB / 0.8257 GB, free: 45.3 MB / 462.1 MB 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