Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009591/0.0009591, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007563/0.0007563, allocations: 100.7 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002239/0.0002241, allocations: 4 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2078, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02895/0.2368, allocations: 36.69 MB / 444.8 MB, free: 6.875 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02421/0.2611, allocations: 10.55 MB / 455.3 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008745/0.2699, allocations: 275.1 kB / 455.6 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007302/0.2772, allocations: 1.744 MB / 457.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01175/0.289, allocations: 2.943 MB / 460.3 MB, free: 7.328 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00644/0.2955, allocations: 1.458 MB / 461.7 MB, free: 5.883 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02044/0.3159, allocations: 13.54 MB / 475.3 MB, free: 8.301 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.041/0.357, allocations: 21.83 MB / 497.1 MB, free: 2.336 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009636/0.3667, allocations: 4.516 MB / 0.4899 GB, free: 13.8 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009969/0.3767, allocations: 5.288 MB / 0.495 GB, free: 8.496 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003219/0.38, allocations: 0.7109 MB / 0.4957 GB, free: 7.785 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005823/0.3858, allocations: 1.136 MB / 0.4968 GB, free: 6.648 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004273/0.3901, allocations: 2.265 MB / 0.499 GB, free: 4.375 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2167/0.6069, allocations: 5.4 MB / 0.5043 GB, free: 29.45 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02168/0.6286, allocations: 20.12 MB / 0.524 GB, free: 22.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.6287, allocations: 0 / 0.524 GB, free: 22.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.977e-06/0.6287, allocations: 0 / 0.524 GB, free: 22.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009307/0.6296, allocations: 6.812 kB / 0.524 GB, free: 22.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.03447/0.6641, allocations: 11.89 MB / 0.5356 GB, free: 16.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.6641, allocations: 7.5 kB / 0.5356 GB, free: 16.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02741/0.6916, allocations: 5.219 MB / 0.5407 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01834/0.7099, allocations: 7.443 MB / 0.548 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00109/0.7111, allocations: 0.8381 MB / 0.5488 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004798/0.7159, allocations: 1.087 MB / 0.5498 GB, free: 12.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04458/0.7605, allocations: 16.55 MB / 0.566 GB, free: 4.184 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006801/0.7613, allocations: 27.23 kB / 0.566 GB, free: 4.164 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003633/0.7649, allocations: 457.6 kB / 0.5665 GB, free: 4.074 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005751/0.7655, allocations: 0.5749 MB / 0.567 GB, free: 3.527 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03422/0.7997, allocations: 14.72 MB / 0.5814 GB, free: 9.453 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1042/0.904, allocations: 58.13 MB / 0.6382 GB, free: 14.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02039/0.9244, allocations: 21.19 MB / 0.6589 GB, free: 6.457 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006172/0.9307, allocations: 3.404 MB / 0.6622 GB, free: 3.039 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01863/0.9493, allocations: 10.12 MB / 0.6721 GB, free: 8.793 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.97e-05/0.9494, allocations: 65.56 kB / 0.6721 GB, free: 8.723 MB / 490.7 MB Notification: Performance of pre-optimization done (n=319): time 5.039e-06/0.9494, allocations: 0 / 0.6721 GB, free: 8.723 MB / 490.7 MB Notification: Performance of matching and sorting (n=346): time 0.2384/1.188, allocations: 16.97 MB / 0.6887 GB, free: 169.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/1.188, allocations: 115.3 kB / 0.6888 GB, free: 169.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008805/1.197, allocations: 5.147 MB / 0.6938 GB, free: 167.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008063/1.198, allocations: 83.8 kB / 0.6939 GB, free: 167.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003038/1.201, allocations: 5.156 MB / 0.6989 GB, free: 163.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.202, allocations: 1.214 MB / 0.7001 GB, free: 162.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004552/1.203, allocations: 131.3 kB / 0.7003 GB, free: 162.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003229/1.203, allocations: 0.5561 MB / 0.7008 GB, free: 162.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004172/1.207, allocations: 2.668 MB / 0.7034 GB, free: 161.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00542/1.213, allocations: 5.487 MB / 0.7088 GB, free: 156.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/1.223, allocations: 8.607 MB / 0.7172 GB, free: 150.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001018/1.223, allocations: 23.53 kB / 0.7172 GB, free: 150.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.01798/1.241, allocations: 9.321 MB / 0.7263 GB, free: 144.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.476e-05/1.241, allocations: 44 kB / 0.7263 GB, free: 144.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001839/1.241, allocations: 98.38 kB / 0.7264 GB, free: 144.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002309/1.243, allocations: 0.935 MB / 0.7273 GB, free: 144 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005579/1.249, allocations: 1.482 MB / 0.7288 GB, free: 142.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/1.259, allocations: 9.765 MB / 0.7383 GB, free: 133.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006766/1.266, allocations: 407.4 kB / 0.7387 GB, free: 133.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00141/1.268, allocations: 336 kB / 0.739 GB, free: 132.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * 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 (770): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009228/1.277, allocations: 3.752 MB / 0.7427 GB, free: 129.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001466/1.278, allocations: 0.5026 MB / 0.7432 GB, free: 129 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/1.289, allocations: 6.008 MB / 0.7491 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00446/1.293, allocations: 3.125 MB / 0.7521 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.845e-05/1.293, allocations: 15.75 kB / 0.7521 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.365e-05/1.293, allocations: 15.94 kB / 0.7521 GB, free: 120.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02885/1.322, allocations: 14.76 MB / 0.7666 GB, free: 106 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/1.322, allocations: 8.125 kB / 0.7666 GB, free: 105.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002474/1.325, allocations: 0.6052 MB / 0.7672 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00226/1.327, allocations: 0.9097 MB / 0.768 GB, free: 104.4 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003792/1.327, allocations: 83.91 kB / 0.7681 GB, free: 104.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/1.339, allocations: 12.88 MB / 0.7807 GB, free: 90.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/1.339, allocations: 4.703 kB / 0.7807 GB, free: 90.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01311/1.352, allocations: 8.711 MB / 0.7892 GB, free: 81.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003331/1.355, allocations: 1.01 MB / 0.7902 GB, free: 80.86 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001125/1.357, allocations: 68 kB / 0.7903 GB, free: 80.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002534/1.359, allocations: 203.8 kB / 0.7905 GB, free: 80.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005844/1.36, allocations: 262.5 kB / 0.7907 GB, free: 80.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/1.36, allocations: 100.2 kB / 0.7908 GB, free: 80.25 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006168/1.366, allocations: 3.399 MB / 0.7941 GB, free: 76.86 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.366, allocations: 0 / 0.7941 GB, free: 76.86 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01013/1.376, allocations: 1.791 MB / 0.7959 GB, free: 75.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (301): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001103/1.377, allocations: 277.1 kB / 0.7961 GB, free: 74.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01193/1.389, allocations: 6.963 MB / 0.8029 GB, free: 67.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/1.389, allocations: 0 / 0.8029 GB, free: 67.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005724/1.395, allocations: 3.453 MB / 0.8063 GB, free: 64.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01092/1.406, allocations: 1.121 MB / 0.8074 GB, free: 63.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03649/1.443, allocations: 21.61 MB / 0.8285 GB, free: 41.49 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007604/1.45, allocations: 6.363 MB / 0.8347 GB, free: 35.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001869/1.452, allocations: 432.6 kB / 0.8351 GB, free: 34.67 MB / 490.7 MB Notification: Performance of SimCode: time 1.093e-06/1.452, allocations: 0 / 0.8351 GB, free: 34.67 MB / 490.7 MB Notification: Performance of Templates: time 1.028/2.48, allocations: 389.6 MB / 1.216 GB, free: 156.5 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.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/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,constantSpeed.phi,constantSpeedQS.phi,smee.excitation.electroMagneticConverter.Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.stator.stray.port_p.Phi.im,smee.stator.stray.port_p.Phi.re,smee.stator.zeroInductor.i0,smeeQS.short.port_p.reference.gamma Variables in the result:constantSpeed.phi,constantSpeedQS.phi,smee.excitation.electroMagneticConverter.Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.stator.stray.port_p.Phi.im,smee.stator.stray.port_p.Phi.re,smee.stator.zeroInductor.i0,smeeQS.short.port_p.reference.gamma,time