Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001524/0.001524, allocations: 200.5 kB / 17.06 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 226.5 MB / 244.3 MB, free: 6.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007851/0.000785, allocations: 97.94 kB / 296.4 MB, free: 6.777 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003487, allocations: 4 kB / 356.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3023, allocations: 51.29 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01262/0.315, allocations: 14.48 MB / 422 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009204/0.3242, allocations: 5.185 MB / 427.2 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002944/0.3272, allocations: 107.6 kB / 427.3 MB, free: 7.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.33, allocations: 0.8504 MB / 428.1 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003604/0.3336, allocations: 1.084 MB / 429.2 MB, free: 6.035 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.3353, allocations: 0.6814 MB / 429.9 MB, free: 5.355 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004255/0.3396, allocations: 3.871 MB / 433.8 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002951/0.3426, allocations: 2.564 MB / 436.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002272/0.3448, allocations: 1.303 MB / 437.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002275/0.3471, allocations: 1.731 MB / 439.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003888/0.3475, allocations: 204 kB / 439.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001267/0.3488, allocations: 443.7 kB / 440 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008459/0.3497, allocations: 0.8837 MB / 440.9 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009745/0.3507, allocations: 0.7653 MB / 441.6 MB, free: 9.523 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00642/0.3571, allocations: 5.61 MB / 447.3 MB, free: 3.898 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.3571, allocations: 0 / 447.3 MB, free: 3.898 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3571, allocations: 4 kB / 447.3 MB, free: 3.895 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002247/0.3574, allocations: 0 / 447.3 MB, free: 3.895 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01163/0.369, allocations: 3.987 MB / 451.2 MB, free: 15.83 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/0.3691, allocations: 8.031 kB / 451.3 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003869/0.373, allocations: 0.6897 MB / 451.9 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005178/0.3782, allocations: 2.373 MB / 454.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000257/0.3784, allocations: 270.9 kB / 454.6 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005744/0.379, allocations: 351.9 kB / 454.9 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008425/0.3875, allocations: 4.448 MB / 459.4 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.619e-05/0.3875, allocations: 3.906 kB / 459.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002989/0.3879, allocations: 144 kB / 459.5 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001689/0.388, allocations: 166.7 kB / 459.7 MB, free: 7.281 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006596/0.3946, allocations: 3.724 MB / 463.4 MB, free: 3.551 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0225/0.4171, allocations: 14.72 MB / 478.1 MB, free: 4.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005316/0.4225, allocations: 5.61 MB / 483.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002775/0.4253, allocations: 1.595 MB / 485.3 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00769/0.433, allocations: 4.23 MB / 489.6 MB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.4331, allocations: 43.88 kB / 489.6 MB, free: 7.996 MB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 2.986e-06/0.4331, allocations: 0 / 489.6 MB, free: 7.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.011/0.4441, allocations: 5.679 MB / 495.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.4442, allocations: 76.66 kB / 495.4 MB, free: 2.062 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003775/0.448, allocations: 2.107 MB / 497.5 MB, free: 15.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.4481, allocations: 53.64 kB / 497.5 MB, free: 15.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001522/0.4496, allocations: 1.653 MB / 499.2 MB, free: 14.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003791/0.45, allocations: 469.4 kB / 499.6 MB, free: 13.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.366e-05/0.4501, allocations: 36 kB / 499.7 MB, free: 13.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.4503, allocations: 373.9 kB / 0.4883 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.4515, allocations: 0.7262 MB / 0.489 GB, free: 12.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.453, allocations: 1.364 MB / 0.4903 GB, free: 10.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.4545, allocations: 0.9589 MB / 0.4913 GB, free: 9.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.4545, allocations: 8 kB / 0.4913 GB, free: 9.973 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004223/0.4588, allocations: 2.588 MB / 0.4938 GB, free: 7.348 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.4588, allocations: 12 kB / 0.4938 GB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.443e-05/0.4588, allocations: 20 kB / 0.4938 GB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005508/0.4594, allocations: 198.9 kB / 0.494 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.461, allocations: 455.3 kB / 0.4945 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.4641, allocations: 3.511 MB / 0.4979 GB, free: 2.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/0.4657, allocations: 107.8 kB / 0.498 GB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.4658, allocations: 88.08 kB / 0.4981 GB, free: 2.688 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00194/0.4677, allocations: 1.048 MB / 0.4991 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000384/0.4681, allocations: 217.3 kB / 0.4993 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2178/0.686, allocations: 2.26 MB / 0.5015 GB, free: 88.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/0.686, allocations: 13.28 kB / 0.5015 GB, free: 88.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.6861, allocations: 9.234 kB / 0.5015 GB, free: 88.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-05/0.6861, allocations: 10.44 kB / 0.5016 GB, free: 88.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00913/0.6952, allocations: 5.301 MB / 0.5067 GB, free: 86.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.535e-06/0.6953, allocations: 3.875 kB / 0.5067 GB, free: 86.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009995/0.6963, allocations: 224.1 kB / 0.507 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007326/0.697, allocations: 321.3 kB / 0.5073 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.488e-05/0.6971, allocations: 32.52 kB / 0.5073 GB, free: 86.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005375/0.7025, allocations: 7.538 MB / 0.5147 GB, free: 79.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.7025, allocations: 7.375 kB / 0.5147 GB, free: 79.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004814/0.7074, allocations: 3.284 MB / 0.5179 GB, free: 78.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.7084, allocations: 473.1 kB / 0.5183 GB, free: 78.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.7086, allocations: 23.69 kB / 0.5183 GB, free: 78.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009264/0.7095, allocations: 79.5 kB / 0.5184 GB, free: 78.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.7097, allocations: 82.19 kB / 0.5185 GB, free: 78.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.178e-05/0.7098, allocations: 46.72 kB / 0.5185 GB, free: 78.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001959/0.7118, allocations: 1.432 MB / 0.5199 GB, free: 77.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7118, allocations: 0 / 0.5199 GB, free: 77.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001897/0.7137, allocations: 0.5697 MB / 0.5205 GB, free: 77.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003301/0.714, allocations: 173.8 kB / 0.5207 GB, free: 77.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002775/0.7168, allocations: 2.146 MB / 0.5228 GB, free: 76.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.7168, allocations: 0 / 0.5228 GB, free: 76.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.7185, allocations: 1.416 MB / 0.5241 GB, free: 75.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/0.7209, allocations: 0.5432 MB / 0.5247 GB, free: 75.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009465/0.7304, allocations: 7.393 MB / 0.5319 GB, free: 67.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001648/0.7321, allocations: 2.365 MB / 0.5342 GB, free: 65.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000681/0.7327, allocations: 175.4 kB / 0.5344 GB, free: 65.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7328, allocations: 0 / 0.5344 GB, free: 65.1 MB / 378.7 MB Notification: Performance of Templates: time 0.09284/0.8256, allocations: 99.76 MB / 0.6318 GB, free: 13.39 MB / 426.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches