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.0011/0.0011, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001014/0.001014, allocations: 200 kB / 18.01 MB, free: 5.055 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.366/1.366, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 43.94 kB / 351.3 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2834, allocations: 49.43 MB / 400.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02557/0.309, allocations: 24.12 MB / 424.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01636/0.3254, allocations: 7.12 MB / 432 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004423/0.3299, allocations: 143.5 kB / 432.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004908/0.3348, allocations: 1.611 MB / 433.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007972/0.3428, allocations: 2.384 MB / 436.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004911/0.3478, allocations: 1.444 MB / 437.6 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.3579, allocations: 7.188 MB / 444.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009269/0.3672, allocations: 5.554 MB / 450.3 MB, free: 7.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005422/0.3727, allocations: 3.205 MB / 453.5 MB, free: 3.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007076/0.3798, allocations: 3.837 MB / 457.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003048/0.3828, allocations: 0.8711 MB / 458.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004797/0.3877, allocations: 1.308 MB / 459.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004014/0.3917, allocations: 2.135 MB / 461.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008987/0.4007, allocations: 3.773 MB / 465.4 MB, free: 7.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01513/0.4159, allocations: 11.48 MB / 476.9 MB, free: 12.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.4159, allocations: 0 / 476.9 MB, free: 12.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4159, allocations: 0 / 476.9 MB, free: 12.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003732/0.4163, allocations: 0 / 476.9 MB, free: 12.33 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.02353/0.4398, allocations: 7.419 MB / 484.3 MB, free: 4.824 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.4399, allocations: 8.031 kB / 484.4 MB, free: 4.816 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006232/0.4461, allocations: 1.219 MB / 485.6 MB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00948/0.4557, allocations: 4.13 MB / 489.7 MB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004345/0.4561, allocations: 423.7 kB / 490.1 MB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001918/0.4581, allocations: 0.5663 MB / 490.7 MB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0163/0.4744, allocations: 7.28 MB / 498 MB, free: 7.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001688/0.4746, allocations: 11.84 kB / 498 MB, free: 7.059 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008547/0.4754, allocations: 240 kB / 498.2 MB, free: 6.824 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000259/0.4757, allocations: 255.3 kB / 498.5 MB, free: 6.574 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/0.4909, allocations: 6.131 MB / 0.4928 GB, free: 448 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06504/0.556, allocations: 23.38 MB / 0.5156 GB, free: 8.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.5687, allocations: 8.716 MB / 0.5241 GB, free: 14.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006121/0.5749, allocations: 2.363 MB / 0.5264 GB, free: 12.38 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01871/0.5936, allocations: 6.922 MB / 0.5332 GB, free: 5.23 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.553e-05/0.5938, allocations: 60.56 kB / 0.5332 GB, free: 5.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 6.532e-06/0.5938, allocations: 0 / 0.5332 GB, free: 5.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.246/0.8398, allocations: 13.69 MB / 0.5466 GB, free: 124.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.8399, allocations: 77.31 kB / 0.5467 GB, free: 124.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004756/0.8446, allocations: 3.428 MB / 0.55 GB, free: 123.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003682/0.845, allocations: 72.58 kB / 0.5501 GB, free: 123.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.8464, allocations: 2.678 MB / 0.5527 GB, free: 121.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005771/0.847, allocations: 0.9679 MB / 0.5537 GB, free: 120.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008023/0.8478, allocations: 0.6356 MB / 0.5543 GB, free: 120 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.808e-05/0.8478, allocations: 308.9 kB / 0.5546 GB, free: 119.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002129/0.85, allocations: 1.543 MB / 0.5561 GB, free: 119.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002764/0.8527, allocations: 2.758 MB / 0.5588 GB, free: 117.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004978/0.8577, allocations: 4.598 MB / 0.5633 GB, free: 114 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.152e-05/0.8578, allocations: 14.23 kB / 0.5633 GB, free: 114 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.007761/0.8655, allocations: 5.472 MB / 0.5686 GB, free: 109.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.8656, allocations: 20 kB / 0.5686 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.221e-05/0.8656, allocations: 40.66 kB / 0.5687 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.867, allocations: 0.6628 MB / 0.5693 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002757/0.8697, allocations: 0.8618 MB / 0.5702 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007973/0.8777, allocations: 10.32 MB / 0.5802 GB, free: 97.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003248/0.881, allocations: 231.1 kB / 0.5805 GB, free: 96.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003404/0.8814, allocations: 167 kB / 0.5806 GB, free: 96.62 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.002423/0.8838, allocations: 1.613 MB / 0.5822 GB, free: 95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007832/0.8846, allocations: 387.3 kB / 0.5826 GB, free: 94.62 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006249/0.8908, allocations: 4.501 MB / 0.587 GB, free: 89.99 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.342e-05/0.8909, allocations: 35.94 kB / 0.587 GB, free: 89.96 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.8909, allocations: 8 kB / 0.587 GB, free: 89.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.988e-05/0.8909, allocations: 11.95 kB / 0.587 GB, free: 89.94 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.904, allocations: 9.898 MB / 0.5967 GB, free: 79.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.904, allocations: 4 kB / 0.5967 GB, free: 79.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001875/0.9059, allocations: 0.4998 MB / 0.5972 GB, free: 79.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001514/0.9074, allocations: 0.7229 MB / 0.5979 GB, free: 78.62 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000181/0.9076, allocations: 71.97 kB / 0.598 GB, free: 78.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009485/0.9171, allocations: 14.11 MB / 0.6117 GB, free: 63.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.9171, allocations: 8 kB / 0.6117 GB, free: 63.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008505/0.9256, allocations: 6.599 MB / 0.6182 GB, free: 56.78 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001587/0.9272, allocations: 0.7734 MB / 0.6189 GB, free: 55.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/0.9277, allocations: 56 kB / 0.619 GB, free: 55.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/0.9295, allocations: 163.8 kB / 0.6191 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/0.9299, allocations: 213.6 kB / 0.6194 GB, free: 55.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/0.9301, allocations: 83.97 kB / 0.6194 GB, free: 55.47 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002634/0.9327, allocations: 2.302 MB / 0.6217 GB, free: 53.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.9328, allocations: 0 / 0.6217 GB, free: 53.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003518/0.9363, allocations: 1.1 MB / 0.6228 GB, free: 52.1 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.0005311/0.9368, allocations: 292.7 kB / 0.623 GB, free: 51.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006523/0.9434, allocations: 4.689 MB / 0.6276 GB, free: 47.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.9434, allocations: 8.062 kB / 0.6276 GB, free: 47.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003944/0.9474, allocations: 2.835 MB / 0.6304 GB, free: 44.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/0.951, allocations: 0.9037 MB / 0.6313 GB, free: 43.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01548/0.9665, allocations: 10.43 MB / 0.6415 GB, free: 32.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002605/0.9692, allocations: 3.511 MB / 0.6449 GB, free: 29.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002725/0.9719, allocations: 0.8562 MB / 0.6457 GB, free: 28.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007046/0.9726, allocations: 263.4 kB / 0.646 GB, free: 28.02 MB / 462.1 MB Notification: Performance of SimCode: time 9.31e-07/0.9726, allocations: 0 / 0.646 GB, free: 28.02 MB / 462.1 MB Notification: Performance of Templates: time 0.08628/1.059, allocations: 51.56 MB / 0.6963 GB, free: 9.066 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