Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001093/0.001093, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.304/1.304, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009687/0.0009688, allocations: 47.31 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08239/0.08338, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01572/0.09914, allocations: 15.89 MB / 367.4 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1562/0.2553, allocations: 5.373 MB / 372.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002809/0.2582, allocations: 104.4 kB / 372.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002454/0.2606, allocations: 1.114 MB / 374 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002773/0.2635, allocations: 1.353 MB / 375.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.2651, allocations: 0.9527 MB / 376.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003366/0.2685, allocations: 3.967 MB / 380.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003483/0.272, allocations: 3.613 MB / 383.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002215/0.2742, allocations: 1.888 MB / 385.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002237/0.2765, allocations: 2.27 MB / 388 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005757/0.277, allocations: 0.5193 MB / 388.6 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001201/0.2782, allocations: 0.7362 MB / 389.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008691/0.2791, allocations: 1.303 MB / 390.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001621/0.2808, allocations: 2.251 MB / 392.8 MB, free: 4.016 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004317/0.2851, allocations: 6.903 MB / 399.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2851, allocations: 0 / 399.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2851, allocations: 2.812 kB / 399.8 MB, free: 15.39 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.429e-05/0.2852, allocations: 0 / 399.8 MB, free: 15.39 MB / 318.1 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.00878/0.294, allocations: 4.668 MB / 404.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.294, allocations: 9.156 kB / 404.4 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002764/0.2968, allocations: 0.6706 MB / 405.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004245/0.301, allocations: 2.532 MB / 407.6 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.3012, allocations: 261.3 kB / 407.9 MB, free: 8.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000462/0.3017, allocations: 343.5 kB / 408.2 MB, free: 8.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006543/0.3082, allocations: 4.471 MB / 412.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.708e-05/0.3083, allocations: 4 kB / 412.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002969/0.3086, allocations: 142 kB / 412.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/0.3088, allocations: 166.7 kB / 413 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005628/0.3144, allocations: 3.751 MB / 416.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01938/0.3338, allocations: 14.31 MB / 431.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005416/0.3392, allocations: 5.361 MB / 436.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001829/0.3411, allocations: 1.27 MB / 437.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006551/0.3477, allocations: 3.815 MB / 441.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.3477, allocations: 47.88 kB / 441.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 2.915e-06/0.3477, allocations: 4 kB / 441.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.008832/0.3566, allocations: 5.487 MB / 447 MB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.3566, allocations: 68.72 kB / 447.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/0.3593, allocations: 2.098 MB / 449.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.434e-05/0.3594, allocations: 53.69 kB / 449.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.3605, allocations: 1.656 MB / 450.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003125/0.3608, allocations: 459.5 kB / 451.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004766/0.3613, allocations: 339.1 kB / 451.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.452e-05/0.3614, allocations: 305.1 kB / 452 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.3625, allocations: 0.7262 MB / 452.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.364, allocations: 1.354 MB / 454.1 MB, free: 8.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/0.3668, allocations: 2.225 MB / 456.3 MB, free: 5.992 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.3668, allocations: 8 kB / 456.3 MB, free: 5.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003762/0.3706, allocations: 2.525 MB / 458.8 MB, free: 3.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.3706, allocations: 12 kB / 458.8 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.3706, allocations: 23.98 kB / 458.9 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003775/0.371, allocations: 143 kB / 459 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.3726, allocations: 467.2 kB / 459.5 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.3751, allocations: 3.348 MB / 462.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.3764, allocations: 115.8 kB / 462.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.3766, allocations: 88.11 kB / 463 MB, free: 14.96 MB / 382.1 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001599/0.3782, allocations: 1.044 MB / 464.1 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003019/0.3785, allocations: 217.3 kB / 464.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.3819, allocations: 2.196 MB / 466.5 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.3819, allocations: 16 kB / 466.5 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3819, allocations: 4 kB / 466.5 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.3819, allocations: 7.969 kB / 466.5 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007658/0.3896, allocations: 5.18 MB / 471.7 MB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/0.3896, allocations: 0 / 471.7 MB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.3906, allocations: 227.7 kB / 471.9 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006707/0.3913, allocations: 279.4 kB / 472.2 MB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.304e-05/0.3914, allocations: 24 kB / 472.2 MB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006596/0.398, allocations: 7.82 MB / 480 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.398, allocations: 4.031 kB / 480 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004362/0.4024, allocations: 3.184 MB / 483.2 MB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009455/0.4034, allocations: 450.4 kB / 483.6 MB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002466/0.4036, allocations: 31.98 kB / 483.7 MB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009301/0.4046, allocations: 71.92 kB / 483.7 MB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.4048, allocations: 97.06 kB / 483.8 MB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-05/0.4049, allocations: 43.92 kB / 483.9 MB, free: 9.234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002092/0.407, allocations: 1.427 MB / 485.3 MB, free: 7.789 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.407, allocations: 0 / 485.3 MB, free: 7.789 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001921/0.4089, allocations: 0.5665 MB / 485.9 MB, free: 7.223 MB / 398.1 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003036/0.4092, allocations: 174.4 kB / 486 MB, free: 7.043 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003122/0.4123, allocations: 2.105 MB / 488.1 MB, free: 4.895 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4124, allocations: 4.062 kB / 488.1 MB, free: 4.891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.4142, allocations: 1.385 MB / 489.5 MB, free: 3.457 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/0.4163, allocations: 0.5576 MB / 490.1 MB, free: 2.902 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009011/0.4254, allocations: 6.039 MB / 496.1 MB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002011/0.4274, allocations: 2.421 MB / 498.5 MB, free: 10.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001323/0.4287, allocations: 494.5 kB / 499 MB, free: 9.883 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004149/0.4292, allocations: 155.4 kB / 499.2 MB, free: 9.73 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4292, allocations: 4 kB / 499.2 MB, free: 9.727 MB / 414.1 MB Notification: Performance of Templates: time 0.04505/0.4742, allocations: 26.53 MB / 0.5134 GB, free: 15.58 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches