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.0009601/0.0009604, allocations: 98.58 kB / 16.95 MB, free: 6.453 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.001104/0.001104, allocations: 183.7 kB / 17.84 MB, free: 6.004 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.526/1.526, allocations: 205.4 MB / 224 MB, free: 13.14 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.0008445/0.0008446, allocations: 12 kB / 280.8 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1221, allocations: 47.58 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02458/0.1467, allocations: 21.23 MB / 349.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01707/0.1639, allocations: 6.699 MB / 356.3 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005596/0.1695, allocations: 119.6 kB / 356.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005256/0.1748, allocations: 1.173 MB / 357.6 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009267/0.1841, allocations: 1.884 MB / 359.5 MB, free: 4.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004669/0.1888, allocations: 0.9708 MB / 360.4 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01393/0.2028, allocations: 7.199 MB / 367.6 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01018/0.213, allocations: 3.67 MB / 371.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006051/0.2191, allocations: 2.28 MB / 373.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006669/0.2258, allocations: 3.031 MB / 376.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003033/0.2289, allocations: 364 kB / 377 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004295/0.2332, allocations: 0.7182 MB / 377.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003604/0.2369, allocations: 1.503 MB / 379.2 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2068/0.4437, allocations: 1.269 MB / 380.5 MB, free: 18.45 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/0.4556, allocations: 9.252 MB / 389.7 MB, free: 17.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4556, allocations: 4.594 kB / 389.7 MB, free: 17.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4556, allocations: 0 / 389.7 MB, free: 17.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003983/0.456, allocations: 0 / 389.7 MB, free: 17.42 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.01727/0.4733, allocations: 6.305 MB / 396 MB, free: 14.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.4734, allocations: 9.469 kB / 396 MB, free: 14.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006961/0.4803, allocations: 1.232 MB / 397.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008307/0.4887, allocations: 3.586 MB / 400.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003635/0.489, allocations: 438.8 kB / 401.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001355/0.4904, allocations: 0.5596 MB / 401.8 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/0.5037, allocations: 7.27 MB / 409.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001243/0.5038, allocations: 7.719 kB / 409.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000515/0.5044, allocations: 240.8 kB / 409.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002234/0.5046, allocations: 264.4 kB / 409.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.5167, allocations: 6.128 MB / 415.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04552/0.5623, allocations: 23.93 MB / 439.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01011/0.5724, allocations: 8.755 MB / 448.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004632/0.5771, allocations: 2.399 MB / 450.8 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01759/0.5947, allocations: 7.041 MB / 457.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.025e-05/0.5949, allocations: 67.8 kB / 457.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=238): time 6.562e-06/0.5949, allocations: 0 / 457.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=282): time 0.03846/0.6333, allocations: 14.55 MB / 472.5 MB, free: 3.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/0.6335, allocations: 81.59 kB / 472.5 MB, free: 3.156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007765/0.6412, allocations: 3.459 MB / 476 MB, free: 15.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005026/0.6418, allocations: 69.7 kB / 476.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002912/0.6447, allocations: 2.681 MB / 478.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001341/0.646, allocations: 0.9631 MB / 479.7 MB, free: 11.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000414/0.6465, allocations: 71.94 kB / 479.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003681/0.6468, allocations: 457.8 kB / 480.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003619/0.6505, allocations: 1.584 MB / 481.8 MB, free: 9.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005648/0.6561, allocations: 2.783 MB / 484.6 MB, free: 6.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005755/0.6619, allocations: 2.042 MB / 486.6 MB, free: 4.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.756e-05/0.662, allocations: 12 kB / 486.7 MB, free: 4.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01584/0.6778, allocations: 5.552 MB / 492.2 MB, free: 15.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.448e-05/0.678, allocations: 20 kB / 492.2 MB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.883e-05/0.6781, allocations: 43.98 kB / 492.3 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002484/0.6806, allocations: 0.6961 MB / 493 MB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004932/0.6855, allocations: 0.8772 MB / 493.8 MB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/0.7004, allocations: 9.589 MB / 0.4916 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005344/0.7057, allocations: 244.6 kB / 0.4919 GB, free: 3.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008358/0.7066, allocations: 168 kB / 0.492 GB, free: 3.07 MB / 398.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 (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.004732/0.7114, allocations: 1.62 MB / 0.4936 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/0.7128, allocations: 383.3 kB / 0.494 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009888/0.7227, allocations: 4.612 MB / 0.4985 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.545e-05/0.7228, allocations: 32 kB / 0.4985 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.465e-05/0.7228, allocations: 8 kB / 0.4985 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.784e-05/0.7229, allocations: 18.91 kB / 0.4985 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02374/0.7466, allocations: 10.08 MB / 0.5084 GB, free: 2.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.493e-05/0.7467, allocations: 4 kB / 0.5084 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002324/0.749, allocations: 0.5189 MB / 0.5089 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.7511, allocations: 0.7454 MB / 0.5096 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003366/0.7514, allocations: 67.97 kB / 0.5097 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01361/0.765, allocations: 13.04 MB / 0.5224 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.7651, allocations: 4 kB / 0.5224 GB, free: 3.035 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2158/0.9809, allocations: 6.734 MB / 0.529 GB, free: 141.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003077/0.9841, allocations: 0.7857 MB / 0.5298 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001384/0.9855, allocations: 64.12 kB / 0.5298 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003006/0.9885, allocations: 188.7 kB / 0.53 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006026/0.9891, allocations: 203.8 kB / 0.5302 GB, free: 141.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002516/0.9894, allocations: 84.31 kB / 0.5303 GB, free: 141.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005165/0.9945, allocations: 2.331 MB / 0.5326 GB, free: 140.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9946, allocations: 0.5312 kB / 0.5326 GB, free: 140.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006941/1.002, allocations: 1.109 MB / 0.5336 GB, free: 140.5 MB / 430.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 (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.001014/1.003, allocations: 252 kB / 0.5339 GB, free: 140.3 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008345/1.011, allocations: 4.755 MB / 0.5385 GB, free: 138.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.011, allocations: 0 / 0.5385 GB, free: 138.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004707/1.016, allocations: 2.894 MB / 0.5414 GB, free: 136.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006968/1.023, allocations: 0.8741 MB / 0.5422 GB, free: 136.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02405/1.047, allocations: 12.52 MB / 0.5544 GB, free: 129.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005217/1.052, allocations: 3.498 MB / 0.5579 GB, free: 127.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004017/1.056, allocations: 0.8629 MB / 0.5587 GB, free: 126.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001026/1.057, allocations: 257.6 kB / 0.5589 GB, free: 126.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.212e-06/1.057, allocations: 4 kB / 0.5589 GB, free: 126.4 MB / 430.1 MB Notification: Performance of Templates: time 0.08564/1.143, allocations: 50.52 MB / 0.6083 GB, free: 76.76 MB / 430.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