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.0007682/0.0007682, allocations: 91.8 kB / 17.31 MB, free: 6.535 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.0008128/0.0008128, allocations: 175.3 kB / 18.21 MB, free: 5.68 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.124/1.124, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001951/0.0001951, allocations: 7.938 kB / 302.1 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07108/0.07129, allocations: 50.42 MB / 352.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1471/0.2184, allocations: 22.84 MB / 375.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.229, allocations: 6.977 MB / 382.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003365/0.2324, allocations: 129.3 kB / 382.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002998/0.2354, allocations: 1.341 MB / 383.8 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005044/0.2404, allocations: 2.062 MB / 385.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002365/0.2428, allocations: 1.298 MB / 387.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006737/0.2495, allocations: 7.769 MB / 394.9 MB, free: 4.559 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004212/0.2538, allocations: 4.594 MB / 399.5 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002633/0.2564, allocations: 2.324 MB / 401.8 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002535/0.259, allocations: 3.137 MB / 405 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004938/0.2595, allocations: 362.1 kB / 405.3 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001532/0.261, allocations: 0.8113 MB / 406.2 MB, free: 14.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.2621, allocations: 1.52 MB / 407.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002423/0.2646, allocations: 3.12 MB / 410.8 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006421/0.271, allocations: 9.296 MB / 420.1 MB, free: 400 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.271, allocations: 4 kB / 420.1 MB, free: 396 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.271, allocations: 3.938 kB / 420.1 MB, free: 392 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001006/0.2711, allocations: 0 / 420.1 MB, free: 392 kB / 318.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.01166/0.2828, allocations: 6.243 MB / 426.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2828, allocations: 8.031 kB / 426.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004926/0.2878, allocations: 1.228 MB / 427.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005273/0.293, allocations: 3.837 MB / 431.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.2934, allocations: 444.5 kB / 431.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007122/0.2941, allocations: 0.5576 MB / 432.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01025/0.3043, allocations: 7.317 MB / 439.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/0.3044, allocations: 15.83 kB / 439.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004608/0.3049, allocations: 235.1 kB / 440 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/0.3051, allocations: 259.3 kB / 440.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00897/0.3141, allocations: 6.193 MB / 446.4 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02854/0.3427, allocations: 23.95 MB / 470.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007195/0.3499, allocations: 8.762 MB / 479.1 MB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003293/0.3532, allocations: 2.417 MB / 481.5 MB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009377/0.3626, allocations: 7.042 MB / 488.6 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.3626, allocations: 68.56 kB / 488.6 MB, free: 10.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 3.166e-06/0.3626, allocations: 0 / 488.6 MB, free: 10.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.02846/0.3911, allocations: 14.53 MB / 0.4914 GB, free: 11.44 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.3912, allocations: 85.53 kB / 0.4915 GB, free: 11.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004048/0.3952, allocations: 3.486 MB / 0.4949 GB, free: 7.871 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.3954, allocations: 73.7 kB / 0.4949 GB, free: 7.793 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001544/0.3969, allocations: 2.674 MB / 0.4975 GB, free: 5.102 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006152/0.3976, allocations: 0.9641 MB / 0.4985 GB, free: 4.145 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003299/0.3979, allocations: 288.5 kB / 0.4988 GB, free: 3.859 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.548e-05/0.398, allocations: 305.1 kB / 0.4991 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002333/0.4003, allocations: 1.596 MB / 0.5006 GB, free: 1.961 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002958/0.4033, allocations: 2.802 MB / 0.5034 GB, free: 14.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005603/0.4089, allocations: 4.688 MB / 0.5079 GB, free: 9.367 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.77e-05/0.4089, allocations: 8 kB / 0.5079 GB, free: 9.359 MB / 430.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007945/0.4169, allocations: 5.584 MB / 0.5134 GB, free: 3.672 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.4169, allocations: 20 kB / 0.5134 GB, free: 3.652 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.408e-05/0.417, allocations: 40 kB / 0.5134 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/0.4184, allocations: 0.6837 MB / 0.5141 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002727/0.4211, allocations: 0.8736 MB / 0.515 GB, free: 2.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008596/0.4297, allocations: 9.591 MB / 0.5243 GB, free: 7.914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002304/0.432, allocations: 246.8 kB / 0.5246 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002277/0.4323, allocations: 164 kB / 0.5247 GB, free: 7.516 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.002307/0.4346, allocations: 1.62 MB / 0.5263 GB, free: 5.887 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005015/0.4351, allocations: 387.3 kB / 0.5267 GB, free: 5.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007003/0.4421, allocations: 4.619 MB / 0.5312 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.669e-05/0.4422, allocations: 35.88 kB / 0.5312 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.4422, allocations: 12 kB / 0.5312 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.178e-05/0.4422, allocations: 15.94 kB / 0.5312 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1542/0.5964, allocations: 10.07 MB / 0.5411 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.5964, allocations: 9.625 kB / 0.5411 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/0.5984, allocations: 0.5152 MB / 0.5416 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001727/0.6001, allocations: 0.7518 MB / 0.5423 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001567/0.6003, allocations: 72.45 kB / 0.5424 GB, free: 138.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009322/0.6096, allocations: 13.05 MB / 0.5552 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.6096, allocations: 3.938 kB / 0.5552 GB, free: 127.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008298/0.618, allocations: 6.761 MB / 0.5618 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.6191, allocations: 0.782 MB / 0.5625 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003951/0.6195, allocations: 64.34 kB / 0.5626 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/0.6212, allocations: 196 kB / 0.5628 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003204/0.6216, allocations: 205.6 kB / 0.563 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.6217, allocations: 82.59 kB / 0.563 GB, free: 124.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002643/0.6244, allocations: 2.355 MB / 0.5653 GB, free: 123.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6244, allocations: 0 / 0.5653 GB, free: 123.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002608/0.627, allocations: 1.109 MB / 0.5664 GB, free: 123.4 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.0004551/0.6274, allocations: 285.3 kB / 0.5667 GB, free: 123.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005351/0.6328, allocations: 4.786 MB / 0.5714 GB, free: 121.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.6328, allocations: 2.219 kB / 0.5714 GB, free: 121.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003231/0.6361, allocations: 2.89 MB / 0.5742 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004964/0.641, allocations: 0.862 MB / 0.575 GB, free: 119.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.6528, allocations: 13.16 MB / 0.5879 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/0.6549, allocations: 3.424 MB / 0.5912 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008058/0.6557, allocations: 287.4 kB / 0.5915 GB, free: 103 MB / 446.1 MB Notification: Performance of SimCode: time 4.51e-07/0.6557, allocations: 0 / 0.5915 GB, free: 103 MB / 446.1 MB Notification: Performance of Templates: time 0.2838/0.9395, allocations: 238.7 MB / 0.8246 GB, free: 45.09 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