Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 114.4 kB / 17.28 MB, free: 6.199 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.001109/0.00111, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 48.39 kB / 280.2 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09449/0.09564, allocations: 46.63 MB / 326.8 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.0235/0.1192, allocations: 23.72 MB / 350.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.1336, allocations: 6.997 MB / 357.5 MB, free: 5.941 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005117/0.1388, allocations: 123.5 kB / 357.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005563/0.1444, allocations: 1.341 MB / 359 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00969/0.1541, allocations: 2.04 MB / 361 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004832/0.159, allocations: 1.322 MB / 362.3 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.1704, allocations: 7.313 MB / 369.6 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007827/0.1783, allocations: 5.474 MB / 375.1 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005755/0.1841, allocations: 3.091 MB / 378.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1837/0.3679, allocations: 3.826 MB / 382 MB, free: 19.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003862/0.3718, allocations: 0.8668 MB / 382.9 MB, free: 19.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006156/0.3779, allocations: 1.304 MB / 384.2 MB, free: 19.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004315/0.3823, allocations: 2.124 MB / 386.3 MB, free: 19.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01082/0.3931, allocations: 3.771 MB / 390.1 MB, free: 18.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01604/0.4092, allocations: 11.33 MB / 401.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4093, allocations: 0 / 401.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4093, allocations: 0 / 401.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003509/0.4096, allocations: 3.094 kB / 401.4 MB, free: 14.65 MB / 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.02102/0.4307, allocations: 7.409 MB / 408.8 MB, free: 9.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4307, allocations: 10.06 kB / 408.9 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006742/0.4375, allocations: 1.225 MB / 410.1 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008206/0.4457, allocations: 3.672 MB / 413.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000342/0.4461, allocations: 438.2 kB / 414.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001608/0.4477, allocations: 0.5551 MB / 414.7 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.4613, allocations: 7.298 MB / 422 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.4614, allocations: 11.91 kB / 422 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005298/0.462, allocations: 231 kB / 422.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002017/0.4622, allocations: 259.3 kB / 422.5 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01414/0.4763, allocations: 6.137 MB / 428.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04667/0.523, allocations: 23.79 MB / 452.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009148/0.5322, allocations: 8.745 MB / 461.2 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004518/0.5368, allocations: 2.393 MB / 463.6 MB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/0.5513, allocations: 7.019 MB / 470.6 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.942e-05/0.5514, allocations: 64.03 kB / 470.7 MB, free: 400 kB / 366.1 MB Notification: Performance of pre-optimization done (n=238): time 6.572e-06/0.5514, allocations: 4 kB / 470.7 MB, free: 396 kB / 366.1 MB Notification: Performance of matching and sorting (n=282): time 0.03424/0.5857, allocations: 13.92 MB / 484.6 MB, free: 2.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.5858, allocations: 77.59 kB / 484.7 MB, free: 2.227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005949/0.5917, allocations: 3.498 MB / 488.2 MB, free: 14.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007487/0.5925, allocations: 73.7 kB / 488.2 MB, free: 14.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002483/0.595, allocations: 2.679 MB / 490.9 MB, free: 11.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001612/0.5966, allocations: 0.9629 MB / 491.9 MB, free: 11.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/0.5979, allocations: 0.6402 MB / 492.5 MB, free: 10.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.598, allocations: 301.1 kB / 492.8 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002698/0.6007, allocations: 1.565 MB / 494.4 MB, free: 8.508 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004218/0.605, allocations: 2.772 MB / 497.2 MB, free: 5.219 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00643/0.6114, allocations: 4.63 MB / 0.49 GB, free: 184 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-05/0.6115, allocations: 11.94 kB / 0.49 GB, free: 172 kB / 398.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.00967/0.6212, allocations: 5.512 MB / 0.4954 GB, free: 10.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.6212, allocations: 24 kB / 0.4954 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.497e-05/0.6213, allocations: 39.94 kB / 0.4955 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/0.6229, allocations: 0.6935 MB / 0.4962 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00306/0.626, allocations: 0.8665 MB / 0.497 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009998/0.636, allocations: 10.51 MB / 0.5073 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003957/0.64, allocations: 223.6 kB / 0.5075 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006089/0.6406, allocations: 172 kB / 0.5076 GB, free: 13.84 MB / 430.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.003618/0.6443, allocations: 1.62 MB / 0.5092 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/0.6454, allocations: 387.3 kB / 0.5096 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007987/0.6534, allocations: 4.561 MB / 0.514 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.49e-05/0.6534, allocations: 32 kB / 0.5141 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.6535, allocations: 8 kB / 0.5141 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.375e-05/0.6535, allocations: 11.95 kB / 0.5141 GB, free: 7.172 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01685/0.6704, allocations: 10.03 MB / 0.5239 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.6704, allocations: 4 kB / 0.5239 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002157/0.6726, allocations: 0.5034 MB / 0.5244 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/0.6745, allocations: 0.7534 MB / 0.5251 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002124/0.6747, allocations: 75.91 kB / 0.5252 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1967/0.8714, allocations: 14.27 MB / 0.5391 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.043e-05/0.8715, allocations: 9.156 kB / 0.5391 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01558/0.8871, allocations: 6.666 MB / 0.5457 GB, free: 152 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002863/0.89, allocations: 0.7869 MB / 0.5464 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008849/0.8909, allocations: 62.09 kB / 0.5465 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002407/0.8933, allocations: 172.1 kB / 0.5466 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008099/0.8942, allocations: 205.7 kB / 0.5468 GB, free: 151.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002385/0.8944, allocations: 86.86 kB / 0.5469 GB, free: 151.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005215/0.8996, allocations: 2.357 MB / 0.5492 GB, free: 150.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.8996, allocations: 0 / 0.5492 GB, free: 150.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005499/0.9052, allocations: 1.111 MB / 0.5503 GB, free: 150.6 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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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.0007768/0.906, allocations: 282.1 kB / 0.5506 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01408/0.92, allocations: 6.706 MB / 0.5571 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.858e-06/0.9201, allocations: 0 / 0.5571 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004991/0.9251, allocations: 2.865 MB / 0.5599 GB, free: 146.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005422/0.9306, allocations: 0.9055 MB / 0.5608 GB, free: 146.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01953/0.9501, allocations: 12.97 MB / 0.5735 GB, free: 136.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003938/0.9541, allocations: 3.501 MB / 0.5769 GB, free: 134.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003903/0.958, allocations: 0.8593 MB / 0.5777 GB, free: 133.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009304/0.959, allocations: 258.4 kB / 0.578 GB, free: 133.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.783e-06/0.959, allocations: 0 / 0.578 GB, free: 133.3 MB / 446.1 MB Notification: Performance of Templates: time 0.09104/1.05, allocations: 54.58 MB / 0.6313 GB, free: 80.53 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches