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.0009578/0.000958, allocations: 92.81 kB / 17.3 MB, free: 6.387 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.001224/0.001224, allocations: 174.8 kB / 18.21 MB, free: 5.551 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.422/1.422, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.000775/0.0007752, allocations: 16 kB / 281.4 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1218, allocations: 47.58 MB / 329 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.03166/0.1536, allocations: 22.78 MB / 351.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01813/0.1718, allocations: 6.962 MB / 358.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005079/0.1769, allocations: 119.6 kB / 358.8 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005367/0.1823, allocations: 1.348 MB / 360.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01092/0.1932, allocations: 2.048 MB / 362.2 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004661/0.1979, allocations: 1.334 MB / 363.6 MB, free: 1.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.2101, allocations: 7.765 MB / 371.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01052/0.2207, allocations: 4.507 MB / 375.8 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005317/0.226, allocations: 2.322 MB / 378.1 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2094/0.4354, allocations: 3.151 MB / 381.3 MB, free: 16.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001883/0.4373, allocations: 365.8 kB / 381.7 MB, free: 16.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00362/0.441, allocations: 0.8009 MB / 382.5 MB, free: 16.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00306/0.444, allocations: 1.516 MB / 384 MB, free: 16.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009468/0.4535, allocations: 3.13 MB / 387.1 MB, free: 16.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01799/0.4716, allocations: 10.74 MB / 397.8 MB, free: 13.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4716, allocations: 0 / 397.8 MB, free: 13.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.409e-06/0.4717, allocations: 0 / 397.8 MB, free: 13.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005469/0.4722, allocations: 0 / 397.8 MB, free: 13.08 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.02844/0.5007, allocations: 6.237 MB / 404.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.5008, allocations: 8.594 kB / 404.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01198/0.5127, allocations: 1.231 MB / 405.3 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01158/0.5244, allocations: 3.691 MB / 409 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006642/0.5251, allocations: 441.7 kB / 409.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002778/0.5279, allocations: 0.5491 MB / 410 MB, free: 7.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0238/0.5517, allocations: 7.315 MB / 417.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000195/0.552, allocations: 19.23 kB / 417.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000893/0.5529, allocations: 231.5 kB / 417.6 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003239/0.5532, allocations: 264.2 kB / 417.8 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0181/0.5713, allocations: 6.176 MB / 424 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06955/0.6409, allocations: 23.95 MB / 447.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01285/0.6538, allocations: 8.768 MB / 456.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005395/0.6592, allocations: 2.408 MB / 459.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01638/0.6757, allocations: 7.048 MB / 466.2 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.399e-05/0.6757, allocations: 56.56 kB / 466.2 MB, free: 4.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=238): time 5.481e-06/0.6758, allocations: 0 / 466.2 MB, free: 4.926 MB / 366.1 MB Notification: Performance of matching and sorting (n=282): time 0.03994/0.7157, allocations: 14.56 MB / 480.8 MB, free: 6.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/0.7158, allocations: 84.97 kB / 480.9 MB, free: 6.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01077/0.7266, allocations: 3.486 MB / 484.3 MB, free: 2.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007269/0.7274, allocations: 69.7 kB / 484.4 MB, free: 2.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003426/0.7308, allocations: 2.687 MB / 487.1 MB, free: 15.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001839/0.7327, allocations: 0.9612 MB / 488.1 MB, free: 14.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007098/0.7334, allocations: 282.3 kB / 488.3 MB, free: 14.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.7335, allocations: 305.1 kB / 488.6 MB, free: 14.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004503/0.738, allocations: 1.592 MB / 490.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006016/0.7441, allocations: 2.81 MB / 493 MB, free: 9.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/0.7569, allocations: 4.69 MB / 497.7 MB, free: 4.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000108/0.7571, allocations: 12 kB / 497.7 MB, free: 4.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.0168/0.774, allocations: 5.578 MB / 0.4915 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.705e-05/0.7741, allocations: 24 kB / 0.4915 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001033/0.7742, allocations: 44.02 kB / 0.4916 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002498/0.7767, allocations: 0.681 MB / 0.4922 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004833/0.7816, allocations: 0.8822 MB / 0.4931 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01523/0.7968, allocations: 9.613 MB / 0.5025 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006082/0.8029, allocations: 248.3 kB / 0.5027 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009117/0.8039, allocations: 168 kB / 0.5029 GB, free: 2.789 MB / 414.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.005971/0.8099, allocations: 1.625 MB / 0.5045 GB, free: 1.211 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001716/0.8116, allocations: 383.3 kB / 0.5048 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01337/0.825, allocations: 4.623 MB / 0.5094 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.413e-05/0.8251, allocations: 36 kB / 0.5094 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.837e-05/0.8252, allocations: 8 kB / 0.5094 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.766e-05/0.8252, allocations: 15.94 kB / 0.5094 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02913/0.8544, allocations: 10.08 MB / 0.5193 GB, free: 1.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/0.8544, allocations: 8.656 kB / 0.5193 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00386/0.8583, allocations: 0.5193 MB / 0.5198 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003211/0.8615, allocations: 0.7498 MB / 0.5205 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005671/0.8621, allocations: 75.91 kB / 0.5206 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01993/0.8821, allocations: 13.06 MB / 0.5333 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.666e-05/0.8822, allocations: 13.88 kB / 0.5333 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2509/1.133, allocations: 6.753 MB / 0.5399 GB, free: 154.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002665/1.136, allocations: 0.7861 MB / 0.5407 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001393/1.137, allocations: 64.88 kB / 0.5408 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00232/1.14, allocations: 193.2 kB / 0.541 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005619/1.14, allocations: 206.2 kB / 0.5411 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000208/1.14, allocations: 84.77 kB / 0.5412 GB, free: 154.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004603/1.145, allocations: 2.36 MB / 0.5435 GB, free: 154.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.145, allocations: 0 / 0.5435 GB, free: 154.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005009/1.15, allocations: 1.114 MB / 0.5446 GB, free: 154.3 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.0008384/1.151, allocations: 275.8 kB / 0.5449 GB, free: 154.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007086/1.158, allocations: 4.774 MB / 0.5495 GB, free: 152.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/1.158, allocations: 0 / 0.5495 GB, free: 152.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004116/1.162, allocations: 2.89 MB / 0.5524 GB, free: 150.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007449/1.17, allocations: 0.8564 MB / 0.5532 GB, free: 150.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/1.188, allocations: 13.16 MB / 0.5661 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003145/1.191, allocations: 3.505 MB / 0.5695 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003326/1.195, allocations: 0.8601 MB / 0.5703 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008212/1.196, allocations: 254.8 kB / 0.5706 GB, free: 140.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.232e-06/1.196, allocations: 0.7656 kB / 0.5706 GB, free: 140.2 MB / 446.1 MB Notification: Performance of Templates: time 0.08309/1.279, allocations: 51.85 MB / 0.6212 GB, free: 90.22 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