Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009607/0.0009607, allocations: 175.3 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008125/0.0008125, allocations: 82.31 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.0003499, allocations: 8 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2713, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.01844/0.2898, allocations: 21.27 MB / 396.4 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.3042, allocations: 6.695 MB / 403.1 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006035/0.3103, allocations: 123.5 kB / 403.2 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005531/0.3159, allocations: 1.169 MB / 404.4 MB, free: 19.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009458/0.3254, allocations: 1.907 MB / 406.3 MB, free: 17.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004955/0.3304, allocations: 0.9752 MB / 407.2 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.3414, allocations: 7.27 MB / 414.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006936/0.3484, allocations: 4.519 MB / 419 MB, free: 4.578 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005103/0.3536, allocations: 2.28 MB / 421.3 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005783/0.3594, allocations: 3.023 MB / 424.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001991/0.3615, allocations: 364 kB / 424.7 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003925/0.3654, allocations: 0.7922 MB / 425.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002252/0.3677, allocations: 1.503 MB / 427 MB, free: 12.6 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005331/0.373, allocations: 2.995 MB / 430 MB, free: 9.582 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01068/0.3837, allocations: 9.279 MB / 439.3 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.3838, allocations: 0 / 439.3 MB, free: 284 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3838, allocations: 0 / 439.3 MB, free: 284 kB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004017/0.3842, allocations: 0 / 439.3 MB, free: 284 kB / 314.7 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.01709/0.4013, allocations: 6.239 MB / 445.5 MB, free: 9.953 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.4014, allocations: 12.03 kB / 445.5 MB, free: 9.941 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006685/0.4081, allocations: 1.223 MB / 446.7 MB, free: 8.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009821/0.4179, allocations: 3.69 MB / 450.4 MB, free: 4.949 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006646/0.4187, allocations: 440 kB / 450.8 MB, free: 4.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002233/0.4209, allocations: 0.5661 MB / 451.4 MB, free: 3.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0204/0.4413, allocations: 7.268 MB / 458.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002506/0.4417, allocations: 11.91 kB / 458.7 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001133/0.4428, allocations: 232 kB / 458.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003201/0.4431, allocations: 263.3 kB / 459.2 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01552/0.4587, allocations: 6.135 MB / 465.3 MB, free: 5.992 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0535/0.5122, allocations: 23.93 MB / 489.2 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009695/0.522, allocations: 8.759 MB / 498 MB, free: 3.723 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005038/0.527, allocations: 2.41 MB / 0.4887 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2126/0.7396, allocations: 7.039 MB / 0.4956 GB, free: 100.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.2e-05/0.7397, allocations: 58.03 kB / 0.4956 GB, free: 100.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 7.194e-06/0.7397, allocations: 1.25 kB / 0.4956 GB, free: 100.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.03262/0.7724, allocations: 14.53 MB / 0.5098 GB, free: 94.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.7725, allocations: 87.55 kB / 0.5099 GB, free: 94.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004816/0.7773, allocations: 3.457 MB / 0.5133 GB, free: 92.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003266/0.7776, allocations: 70.88 kB / 0.5133 GB, free: 91.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001242/0.7789, allocations: 2.68 MB / 0.516 GB, free: 89.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006565/0.7796, allocations: 0.969 MB / 0.5169 GB, free: 88.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.7797, allocations: 68.7 kB / 0.517 GB, free: 88.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.7799, allocations: 457.7 kB / 0.5174 GB, free: 87.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002228/0.7821, allocations: 1.581 MB / 0.5189 GB, free: 86.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002598/0.7848, allocations: 2.791 MB / 0.5217 GB, free: 82.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005003/0.7898, allocations: 4.668 MB / 0.5262 GB, free: 77.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.959e-05/0.7898, allocations: 12 kB / 0.5262 GB, free: 77.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008659/0.7985, allocations: 5.557 MB / 0.5317 GB, free: 71.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/0.7985, allocations: 24.62 kB / 0.5317 GB, free: 71.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.342e-05/0.7986, allocations: 39.94 kB / 0.5317 GB, free: 71.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.8001, allocations: 0.6764 MB / 0.5324 GB, free: 71.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/0.8031, allocations: 0.8853 MB / 0.5333 GB, free: 70.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007935/0.811, allocations: 9.592 MB / 0.5426 GB, free: 60.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006356/0.8174, allocations: 243.5 kB / 0.5429 GB, free: 59.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008968/0.8183, allocations: 164.8 kB / 0.543 GB, free: 59.83 MB / 378.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005419/0.8238, allocations: 1.625 MB / 0.5446 GB, free: 58.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001539/0.8253, allocations: 387.3 kB / 0.545 GB, free: 57.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/0.8359, allocations: 4.601 MB / 0.5495 GB, free: 53.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.017e-05/0.836, allocations: 35.94 kB / 0.5495 GB, free: 53.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-05/0.836, allocations: 8 kB / 0.5495 GB, free: 53.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.375e-05/0.8361, allocations: 15.94 kB / 0.5495 GB, free: 53.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02402/0.8601, allocations: 10.07 MB / 0.5594 GB, free: 42.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/0.8602, allocations: 8 kB / 0.5594 GB, free: 42.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003173/0.8634, allocations: 0.5195 MB / 0.5599 GB, free: 42.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/0.866, allocations: 0.7523 MB / 0.5606 GB, free: 41.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003974/0.8664, allocations: 67.48 kB / 0.5607 GB, free: 41.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/0.8788, allocations: 13.05 MB / 0.5734 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.8788, allocations: 8 kB / 0.5734 GB, free: 27.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/0.8892, allocations: 6.739 MB / 0.58 GB, free: 20.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002418/0.8917, allocations: 0.7929 MB / 0.5808 GB, free: 19.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008856/0.8926, allocations: 63.94 kB / 0.5808 GB, free: 19.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/0.8945, allocations: 187.7 kB / 0.581 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004556/0.8949, allocations: 209.7 kB / 0.5812 GB, free: 19.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001768/0.8951, allocations: 87.97 kB / 0.5813 GB, free: 19.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003478/0.8986, allocations: 2.329 MB / 0.5836 GB, free: 16.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8986, allocations: 0 / 0.5836 GB, free: 16.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004167/0.9028, allocations: 1.107 MB / 0.5846 GB, free: 15.8 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006223/0.9034, allocations: 275.6 kB / 0.5849 GB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006577/0.91, allocations: 4.76 MB / 0.5896 GB, free: 10.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.9101, allocations: 4.875 kB / 0.5896 GB, free: 10.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003894/0.914, allocations: 2.875 MB / 0.5924 GB, free: 7.691 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007176/0.9211, allocations: 0.8601 MB / 0.5932 GB, free: 6.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/0.942, allocations: 12.55 MB / 0.6055 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004117/0.9462, allocations: 3.42 MB / 0.6088 GB, free: 6.727 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/0.9477, allocations: 291.4 kB / 0.6091 GB, free: 6.441 MB / 394.7 MB Notification: Performance of SimCode: time 1.112e-06/0.9477, allocations: 4 kB / 0.6091 GB, free: 6.438 MB / 394.7 MB Notification: Performance of Templates: time 0.6605/1.608, allocations: 238.7 MB / 0.8422 GB, free: 150.4 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches