Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.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.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001948/0.001948, allocations: 111.1 kB / 17.06 MB, free: 6 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.00182/0.001821, allocations: 196 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001015/0.001016, allocations: 52.06 kB / 351.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2637/0.2647, allocations: 49.43 MB / 400.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02246/0.2872, allocations: 24.12 MB / 424.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.2994, allocations: 7.124 MB / 432 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003758/0.3032, allocations: 147.5 kB / 432.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005314/0.3085, allocations: 1.583 MB / 433.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007641/0.3162, allocations: 2.29 MB / 436 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003671/0.3199, allocations: 1.442 MB / 437.5 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008266/0.3282, allocations: 7.194 MB / 444.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005793/0.334, allocations: 5.554 MB / 450.2 MB, free: 7.145 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004495/0.3385, allocations: 3.212 MB / 453.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004902/0.3434, allocations: 3.833 MB / 457.3 MB, free: 76 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001232/0.3447, allocations: 0.875 MB / 458.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00223/0.3469, allocations: 1.3 MB / 459.4 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001647/0.3486, allocations: 2.131 MB / 461.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003688/0.3523, allocations: 3.777 MB / 465.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01048/0.3628, allocations: 11.48 MB / 476.8 MB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.3628, allocations: 4 kB / 476.8 MB, free: 12.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3628, allocations: 0 / 476.8 MB, free: 12.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002233/0.3631, allocations: 0 / 476.8 MB, free: 12.45 MB / 398.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.01813/0.3812, allocations: 7.411 MB / 484.2 MB, free: 4.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3813, allocations: 8.031 kB / 484.2 MB, free: 4.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005685/0.387, allocations: 1.223 MB / 485.5 MB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007671/0.3946, allocations: 4.126 MB / 489.6 MB, free: 15.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003068/0.395, allocations: 435.7 kB / 490 MB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009621/0.3959, allocations: 0.5624 MB / 490.6 MB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/0.4083, allocations: 7.28 MB / 497.9 MB, free: 7.188 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.4084, allocations: 7.906 kB / 497.9 MB, free: 7.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005122/0.4089, allocations: 232 kB / 498.1 MB, free: 6.953 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002631/0.4092, allocations: 267.3 kB / 498.4 MB, free: 6.691 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01003/0.4192, allocations: 6.119 MB / 0.4927 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03537/0.4546, allocations: 23.39 MB / 0.5155 GB, free: 8.531 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01029/0.465, allocations: 8.712 MB / 0.524 GB, free: 14.87 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004094/0.4691, allocations: 2.367 MB / 0.5263 GB, free: 12.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01303/0.4822, allocations: 6.918 MB / 0.5331 GB, free: 5.355 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.041e-05/0.4823, allocations: 68.56 kB / 0.5331 GB, free: 5.277 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.47e-06/0.4823, allocations: 0 / 0.5331 GB, free: 5.277 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.2514/0.7337, allocations: 13.69 MB / 0.5465 GB, free: 123.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.7338, allocations: 82.31 kB / 0.5466 GB, free: 123.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004079/0.7378, allocations: 3.418 MB / 0.5499 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001853/0.738, allocations: 75.94 kB / 0.55 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001285/0.7393, allocations: 2.681 MB / 0.5526 GB, free: 119.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005623/0.7399, allocations: 0.9591 MB / 0.5535 GB, free: 119.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007881/0.7407, allocations: 0.6448 MB / 0.5542 GB, free: 118.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.864e-05/0.7407, allocations: 301.1 kB / 0.5545 GB, free: 118.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002089/0.7428, allocations: 1.542 MB / 0.556 GB, free: 117.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002519/0.7454, allocations: 2.76 MB / 0.5587 GB, free: 115.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004745/0.7501, allocations: 4.6 MB / 0.5632 GB, free: 112.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-05/0.7502, allocations: 13.52 kB / 0.5632 GB, free: 112.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008222/0.7584, allocations: 5.474 MB / 0.5685 GB, free: 108.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.344e-05/0.7585, allocations: 20.62 kB / 0.5685 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.845e-05/0.7585, allocations: 40 kB / 0.5686 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.7599, allocations: 0.6626 MB / 0.5692 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002884/0.7628, allocations: 0.8541 MB / 0.5701 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007452/0.7703, allocations: 10.34 MB / 0.5801 GB, free: 95.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003028/0.7733, allocations: 228.1 kB / 0.5804 GB, free: 95.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/0.7736, allocations: 168 kB / 0.5805 GB, free: 95.28 MB / 462.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.002231/0.7758, allocations: 1.617 MB / 0.5821 GB, free: 93.65 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005926/0.7764, allocations: 387.3 kB / 0.5825 GB, free: 93.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006203/0.7826, allocations: 4.501 MB / 0.5869 GB, free: 88.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.27e-05/0.7827, allocations: 43.92 kB / 0.5869 GB, free: 88.61 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.7827, allocations: 8 kB / 0.5869 GB, free: 88.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.032e-05/0.7827, allocations: 15.23 kB / 0.5869 GB, free: 88.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/0.7951, allocations: 9.88 MB / 0.5966 GB, free: 78.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.7952, allocations: 8 kB / 0.5966 GB, free: 78.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001949/0.7971, allocations: 0.4919 MB / 0.5971 GB, free: 78.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/0.7987, allocations: 0.7332 MB / 0.5978 GB, free: 77.28 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001709/0.7989, allocations: 71.97 kB / 0.5979 GB, free: 77.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009446/0.8083, allocations: 14.1 MB / 0.6116 GB, free: 62.29 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.8083, allocations: 11.94 kB / 0.6116 GB, free: 62.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009588/0.8179, allocations: 6.591 MB / 0.6181 GB, free: 55.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/0.8201, allocations: 0.7695 MB / 0.6188 GB, free: 54.64 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006171/0.8207, allocations: 63.58 kB / 0.6189 GB, free: 54.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/0.8226, allocations: 175.8 kB / 0.6191 GB, free: 54.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005353/0.8231, allocations: 201.8 kB / 0.6192 GB, free: 54.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/0.8233, allocations: 87.81 kB / 0.6193 GB, free: 54.13 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003553/0.8269, allocations: 2.302 MB / 0.6216 GB, free: 51.84 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.8269, allocations: 0 / 0.6216 GB, free: 51.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005018/0.8319, allocations: 1.096 MB / 0.6227 GB, free: 50.75 MB / 462.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.stray.Phi.re,smeeM.stator.stray.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.0007925/0.8327, allocations: 287.9 kB / 0.6229 GB, free: 50.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0068/0.8396, allocations: 4.697 MB / 0.6275 GB, free: 45.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.8396, allocations: 8.188 kB / 0.6275 GB, free: 45.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003785/0.8434, allocations: 2.839 MB / 0.6303 GB, free: 42.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004567/0.848, allocations: 0.904 MB / 0.6312 GB, free: 41.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/0.8643, allocations: 10.43 MB / 0.6414 GB, free: 31.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002827/0.8672, allocations: 3.495 MB / 0.6448 GB, free: 27.81 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002708/0.87, allocations: 0.8601 MB / 0.6456 GB, free: 26.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007366/0.8707, allocations: 263.4 kB / 0.6459 GB, free: 26.69 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.8707, allocations: 3.938 kB / 0.6459 GB, free: 26.68 MB / 462.1 MB Notification: Performance of Templates: time 0.08462/0.9553, allocations: 51.56 MB / 0.6962 GB, free: 7.727 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches