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.001254/0.001254, allocations: 108.4 kB / 18.35 MB, free: 4.629 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.001058/0.001058, allocations: 187 kB / 19.29 MB, free: 3.699 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.336/1.336, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.00115/0.001151, allocations: 52.39 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08065/0.08182, allocations: 46.64 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02665/0.1085, allocations: 24.03 MB / 352.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.1227, allocations: 7.117 MB / 359.9 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004437/0.1272, allocations: 135.4 kB / 360 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005032/0.1323, allocations: 1.572 MB / 361.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008359/0.1407, allocations: 2.275 MB / 363.9 MB, free: 460 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00434/0.145, allocations: 1.458 MB / 365.3 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01127/0.1563, allocations: 7.223 MB / 372.6 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006663/0.163, allocations: 5.478 MB / 378 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1707/0.3337, allocations: 3.174 MB / 381.2 MB, free: 17.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006965/0.3407, allocations: 3.83 MB / 385 MB, free: 17.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002634/0.3434, allocations: 0.8722 MB / 385.9 MB, free: 17.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004291/0.3477, allocations: 1.295 MB / 387.2 MB, free: 17.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002835/0.3506, allocations: 2.132 MB / 389.3 MB, free: 17.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005268/0.3558, allocations: 3.775 MB / 393.1 MB, free: 16.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01285/0.3687, allocations: 11.46 MB / 404.6 MB, free: 12.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.3688, allocations: 4.625 kB / 404.6 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3688, allocations: 1.406 kB / 404.6 MB, free: 12.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003588/0.3691, allocations: 1.5 kB / 404.6 MB, free: 12.63 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.0214/0.3905, allocations: 7.418 MB / 412 MB, free: 7.793 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.3906, allocations: 9.438 kB / 412 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005703/0.3963, allocations: 1.217 MB / 413.2 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007519/0.4038, allocations: 3.921 MB / 417.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/0.4041, allocations: 425.8 kB / 417.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008974/0.405, allocations: 0.5518 MB / 418.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.4173, allocations: 7.274 MB / 425.4 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001275/0.4175, allocations: 15.17 kB / 425.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005247/0.418, allocations: 235.8 kB / 425.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002427/0.4183, allocations: 263.3 kB / 425.9 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.4314, allocations: 6.102 MB / 432 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04228/0.4737, allocations: 23.4 MB / 455.4 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008074/0.4818, allocations: 8.723 MB / 464.1 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003731/0.4856, allocations: 2.369 MB / 466.5 MB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01268/0.4983, allocations: 6.929 MB / 473.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.953e-05/0.4984, allocations: 60.03 kB / 473.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 5.36e-06/0.4984, allocations: 0 / 473.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03255/0.5309, allocations: 13.72 MB / 487.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.531, allocations: 77.59 kB / 487.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005657/0.5367, allocations: 3.432 MB / 490.7 MB, free: 11.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004416/0.5372, allocations: 69.7 kB / 490.8 MB, free: 11.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001911/0.5391, allocations: 2.676 MB / 493.4 MB, free: 9.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008859/0.54, allocations: 0.9688 MB / 494.4 MB, free: 8.156 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/0.541, allocations: 0.6403 MB / 495 MB, free: 7.512 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.634e-05/0.5411, allocations: 301.1 kB / 495.3 MB, free: 7.215 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002609/0.5437, allocations: 1.545 MB / 496.9 MB, free: 5.668 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00337/0.5471, allocations: 2.761 MB / 499.6 MB, free: 2.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006282/0.5534, allocations: 4.602 MB / 0.4924 GB, free: 13.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.432e-05/0.5534, allocations: 12 kB / 0.4924 GB, free: 13.36 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009264/0.5627, allocations: 5.475 MB / 0.4978 GB, free: 8.035 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.5628, allocations: 20 kB / 0.4978 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.677e-05/0.5628, allocations: 40 kB / 0.4978 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.5644, allocations: 0.6651 MB / 0.4985 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003251/0.5676, allocations: 0.8654 MB / 0.4993 GB, free: 6.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.5777, allocations: 10.37 MB / 0.5095 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003394/0.5811, allocations: 223.5 kB / 0.5097 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/0.5815, allocations: 164 kB / 0.5098 GB, free: 11.25 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * 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.00325/0.5847, allocations: 1.627 MB / 0.5114 GB, free: 9.672 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009403/0.5857, allocations: 383.3 kB / 0.5118 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007498/0.5932, allocations: 4.517 MB / 0.5162 GB, free: 4.68 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-05/0.5932, allocations: 28 kB / 0.5162 GB, free: 4.652 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.359e-05/0.5933, allocations: 8 kB / 0.5162 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/0.5933, allocations: 11.95 kB / 0.5162 GB, free: 4.633 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01626/0.6096, allocations: 9.898 MB / 0.5259 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/0.6096, allocations: 8 kB / 0.5259 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002225/0.6119, allocations: 0.5008 MB / 0.5264 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.6137, allocations: 0.7227 MB / 0.5271 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/0.614, allocations: 71.97 kB / 0.5272 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1509/0.7649, allocations: 14.11 MB / 0.541 GB, free: 151.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/0.7649, allocations: 9.188 kB / 0.541 GB, free: 151.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/0.7751, allocations: 6.594 MB / 0.5474 GB, free: 150.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002075/0.7772, allocations: 0.7696 MB / 0.5482 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000469/0.7777, allocations: 63.56 kB / 0.5482 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/0.7796, allocations: 168.8 kB / 0.5484 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004692/0.7801, allocations: 211 kB / 0.5486 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/0.7803, allocations: 85.25 kB / 0.5487 GB, free: 149.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003461/0.7837, allocations: 2.303 MB / 0.5509 GB, free: 148.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.7837, allocations: 0 / 0.5509 GB, free: 148.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003587/0.7873, allocations: 1.1 MB / 0.552 GB, free: 148.7 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.0005391/0.7879, allocations: 274.2 kB / 0.5522 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006151/0.794, allocations: 4.689 MB / 0.5568 GB, free: 146.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.7941, allocations: 3.844 kB / 0.5568 GB, free: 146.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003626/0.7977, allocations: 2.834 MB / 0.5596 GB, free: 145 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003165/0.8009, allocations: 0.9059 MB / 0.5605 GB, free: 144.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/0.8139, allocations: 10.42 MB / 0.5707 GB, free: 139.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002486/0.8164, allocations: 3.504 MB / 0.5741 GB, free: 136.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00232/0.8188, allocations: 0.8578 MB / 0.5749 GB, free: 135.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006735/0.8195, allocations: 259.6 kB / 0.5752 GB, free: 135.7 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.8195, allocations: 0 / 0.5752 GB, free: 135.7 MB / 446.1 MB Notification: Performance of Templates: time 0.06738/0.8868, allocations: 50.45 MB / 0.6244 GB, free: 87.38 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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