Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_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|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001307/0.001307, allocations: 185.2 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.4 MB / 223.6 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008374/0.0008373, allocations: 94 kB / 271.9 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000316/0.000316, allocations: 8 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2284, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3304/0.5589, allocations: 167.8 MB / 0.5309 GB, free: 64.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5592, allocations: 105.8 kB / 0.531 GB, free: 64.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.154/1.714, allocations: 392 MB / 0.9137 GB, free: 39.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.714, allocations: 0 / 0.9137 GB, free: 39.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001043/1.715, allocations: 268.1 kB / 0.914 GB, free: 39.33 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03652/1.751, allocations: 10.89 MB / 0.9246 GB, free: 35.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/1.751, allocations: 7.75 kB / 0.9246 GB, free: 35.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02309/1.774, allocations: 4.42 MB / 0.929 GB, free: 34.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01997/1.794, allocations: 8.274 MB / 0.937 GB, free: 31.74 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009459/1.795, allocations: 0.8435 MB / 0.9379 GB, free: 31.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004244/1.8, allocations: 1.076 MB / 0.9389 GB, free: 31.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03748/1.837, allocations: 17.59 MB / 0.9561 GB, free: 17.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003949/1.838, allocations: 15.75 kB / 0.9561 GB, free: 17.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002774/1.84, allocations: 475.2 kB / 0.9566 GB, free: 16.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00062/1.841, allocations: 0.696 MB / 0.9572 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03245/1.873, allocations: 15.33 MB / 0.9722 GB, free: 1.957 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3312/2.205, allocations: 58.14 MB / 1.029 GB, free: 36.56 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0167/2.221, allocations: 17.24 MB / 1.046 GB, free: 28.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01005/2.232, allocations: 6.312 MB / 1.052 GB, free: 28.13 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03458/2.266, allocations: 18.97 MB / 1.071 GB, free: 24.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.545e-05/2.266, allocations: 88.5 kB / 1.071 GB, free: 24.81 MB / 458.7 MB Notification: Performance of pre-optimization done (n=631): time 9.879e-06/2.266, allocations: 0 / 1.071 GB, free: 24.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=658): time 0.06087/2.327, allocations: 29.93 MB / 1.1 GB, free: 11.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/2.327, allocations: 136 kB / 1.1 GB, free: 11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007055/2.334, allocations: 4.426 MB / 1.104 GB, free: 9.391 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001348/2.336, allocations: 118.5 kB / 1.104 GB, free: 9.289 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002451/2.338, allocations: 4.612 MB / 1.109 GB, free: 5.895 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002792/2.341, allocations: 2.187 MB / 1.111 GB, free: 4.199 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007261/2.342, allocations: 141.2 kB / 1.111 GB, free: 4.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004608/2.342, allocations: 0.6142 MB / 1.112 GB, free: 3.652 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006471/2.349, allocations: 4.402 MB / 1.116 GB, free: 1.879 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009485/2.358, allocations: 6.46 MB / 1.122 GB, free: 13.64 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01711/2.375, allocations: 11.34 MB / 1.133 GB, free: 7.004 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.798e-05/2.375, allocations: 23.5 kB / 1.133 GB, free: 7 MB / 474.7 MB Notification: Performance of matching and sorting (n=993) (initialization): time 0.03169/2.407, allocations: 13.68 MB / 1.147 GB, free: 14.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.287e-05/2.407, allocations: 39.97 kB / 1.147 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/2.407, allocations: 60 kB / 1.147 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004812/2.412, allocations: 2.405 MB / 1.149 GB, free: 12.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006418/2.419, allocations: 1.521 MB / 1.151 GB, free: 11.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/2.43, allocations: 10.43 MB / 1.161 GB, free: 1.512 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006598/2.437, allocations: 487.1 kB / 1.161 GB, free: 1.145 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00166/2.438, allocations: 333.9 kB / 1.162 GB, free: 0.8398 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * 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 (792): * Single equations (assignments): 725 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.2519/2.69, allocations: 4.505 MB / 1.166 GB, free: 83.11 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001811/2.692, allocations: 0.5519 MB / 1.167 GB, free: 83.11 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/2.713, allocations: 11.59 MB / 1.178 GB, free: 82.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01413/2.727, allocations: 8.45 MB / 1.186 GB, free: 82.33 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-05/2.728, allocations: 7.281 kB / 1.186 GB, free: 82.33 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001283/2.728, allocations: 28.36 kB / 1.186 GB, free: 82.33 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04798/2.776, allocations: 24.55 MB / 1.21 GB, free: 81.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.489e-05/2.776, allocations: 6.219 kB / 1.21 GB, free: 81.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004031/2.78, allocations: 0.8905 MB / 1.211 GB, free: 81.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004787/2.785, allocations: 2.431 MB / 1.213 GB, free: 81.06 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001317/2.786, allocations: 148.2 kB / 1.214 GB, free: 81.06 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01172/2.798, allocations: 14.1 MB / 1.227 GB, free: 72.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.455e-06/2.798, allocations: 16.05 kB / 1.227 GB, free: 72.62 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02628/2.824, allocations: 17.47 MB / 1.244 GB, free: 64.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004621/2.829, allocations: 1.555 MB / 1.246 GB, free: 64.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001995/2.831, allocations: 112.3 kB / 1.246 GB, free: 64.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004512/2.835, allocations: 317.2 kB / 1.246 GB, free: 63.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001559/2.837, allocations: 0.4886 MB / 1.247 GB, free: 63.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005979/2.837, allocations: 184.3 kB / 1.247 GB, free: 63.81 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005604/2.843, allocations: 2.931 MB / 1.25 GB, free: 62.71 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/2.843, allocations: 0.9375 kB / 1.25 GB, free: 62.71 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009962/2.853, allocations: 1.993 MB / 1.252 GB, free: 62.51 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel,smee.phiMechanical,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,smee.excitation.electroMagneticConverter.Phi.re) * 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 (470): * Single equations (assignments): 402 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.001978/2.855, allocations: 0.5808 MB / 1.252 GB, free: 62.31 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0179/2.873, allocations: 10.93 MB / 1.263 GB, free: 58.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/2.873, allocations: 1.5 kB / 1.263 GB, free: 58.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009358/2.882, allocations: 5.785 MB / 1.269 GB, free: 55.55 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01068/2.893, allocations: 1.141 MB / 1.27 GB, free: 55.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03632/2.929, allocations: 25.39 MB / 1.295 GB, free: 35.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006272/2.936, allocations: 6.602 MB / 1.301 GB, free: 30.64 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002292/2.938, allocations: 464.2 kB / 1.302 GB, free: 30.22 MB / 490.7 MB Notification: Performance of SimCode: time 1.333e-06/2.938, allocations: 1.219 kB / 1.302 GB, free: 30.22 MB / 490.7 MB Notification: Performance of Templates: time 1.74/4.678, allocations: 0.7062 GB / 2.008 GB, free: 59.45 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_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,Ptr,Pqs,smee.excitation.electroMagneticConverter.Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.stator.strayReluctance.port_p.Phi.im,smee.stator.strayReluctance.port_p.Phi.re,smeeQS.short.port_p.reference.gamma Variables in the result:Pqs,Ptr,smee.excitation.electroMagneticConverter.Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.stator.strayReluctance.port_p.Phi.im,smee.stator.strayReluctance.port_p.Phi.re,smeeQS.short.port_p.reference.gamma,time