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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001383, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 114.2 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007931/0.0007932, allocations: 40.03 kB / 350.1 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2571, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01791/0.2751, allocations: 15.68 MB / 415.2 MB, free: 17.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.2859, allocations: 5.305 MB / 420.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003183/0.2891, allocations: 99.56 kB / 420.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003463/0.2927, allocations: 0.9753 MB / 421.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004702/0.2974, allocations: 1.22 MB / 422.8 MB, free: 9.992 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.2999, allocations: 0.8785 MB / 423.6 MB, free: 9.113 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005075/0.3049, allocations: 4.12 MB / 427.8 MB, free: 4.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003966/0.3089, allocations: 3.053 MB / 430.8 MB, free: 1.852 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.3113, allocations: 1.588 MB / 432.4 MB, free: 264 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003343/0.3147, allocations: 2.132 MB / 434.5 MB, free: 14.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007516/0.3155, allocations: 316 kB / 434.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001637/0.3171, allocations: 0.5347 MB / 435.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001165/0.3183, allocations: 1.079 MB / 436.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.321, allocations: 2.021 MB / 438.5 MB, free: 10.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008491/0.3295, allocations: 6.671 MB / 445.2 MB, free: 3.469 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.3296, allocations: 3.984 kB / 445.2 MB, free: 3.465 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3296, allocations: 0 / 445.2 MB, free: 3.465 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001708/0.3298, allocations: 0 / 445.2 MB, free: 3.465 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.01719/0.347, allocations: 4.657 MB / 449.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.347, allocations: 8.031 kB / 449.8 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004432/0.3515, allocations: 0.6675 MB / 450.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005237/0.3568, allocations: 2.447 MB / 452.9 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002517/0.357, allocations: 263.5 kB / 453.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007412/0.3578, allocations: 355.8 kB / 453.5 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009615/0.3674, allocations: 4.46 MB / 458 MB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001106/0.3676, allocations: 11.91 kB / 458 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005814/0.3682, allocations: 140 kB / 458.2 MB, free: 6.281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001751/0.3683, allocations: 162.8 kB / 458.3 MB, free: 6.121 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008242/0.3766, allocations: 3.763 MB / 462.1 MB, free: 2.352 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02644/0.4031, allocations: 14.47 MB / 476.5 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00533/0.4085, allocations: 5.357 MB / 481.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002008/0.4105, allocations: 1.282 MB / 483.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006839/0.4174, allocations: 3.819 MB / 487 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.4174, allocations: 51.75 kB / 487.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 3.186e-06/0.4175, allocations: 0 / 487.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.0101/0.4276, allocations: 5.495 MB / 492.5 MB, free: 2.477 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.4277, allocations: 64.72 kB / 492.6 MB, free: 2.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003273/0.4309, allocations: 2.106 MB / 494.7 MB, free: 268 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.4311, allocations: 45.7 kB / 494.8 MB, free: 216 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.4323, allocations: 1.657 MB / 496.4 MB, free: 14.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004081/0.4327, allocations: 469.3 kB / 496.9 MB, free: 14.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005019/0.4332, allocations: 339.2 kB / 497.2 MB, free: 13.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4333, allocations: 305.1 kB / 497.5 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.4345, allocations: 0.7183 MB / 498.2 MB, free: 12.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.4361, allocations: 1.352 MB / 499.6 MB, free: 11.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002825/0.4389, allocations: 2.23 MB / 0.49 GB, free: 8.562 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.439, allocations: 4 kB / 0.4901 GB, free: 8.559 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004088/0.4431, allocations: 2.529 MB / 0.4925 GB, free: 5.992 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.291e-05/0.4431, allocations: 12.5 kB / 0.4925 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.679e-05/0.4431, allocations: 24 kB / 0.4926 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003879/0.4435, allocations: 138.5 kB / 0.4927 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.4451, allocations: 459.2 kB / 0.4931 GB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.4476, allocations: 3.079 MB / 0.4961 GB, free: 2.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002066/0.4497, allocations: 119.9 kB / 0.4962 GB, free: 1.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.4498, allocations: 76 kB / 0.4963 GB, free: 1.828 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 (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.002058/0.4519, allocations: 1.059 MB / 0.4974 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003766/0.4523, allocations: 209.4 kB / 0.4976 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1969/0.6492, allocations: 2.188 MB / 0.4997 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.6493, allocations: 12.53 kB / 0.4997 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.6493, allocations: 3.938 kB / 0.4997 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/0.6493, allocations: 12.31 kB / 0.4997 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007784/0.6571, allocations: 5.18 MB / 0.5048 GB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.6571, allocations: 2.25 kB / 0.5048 GB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009486/0.6581, allocations: 230.2 kB / 0.505 GB, free: 91.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007308/0.6588, allocations: 272.4 kB / 0.5053 GB, free: 91.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.482e-05/0.659, allocations: 33.53 kB / 0.5053 GB, free: 91.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005503/0.6645, allocations: 7.126 MB / 0.5122 GB, free: 85.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.6645, allocations: 10.44 kB / 0.5123 GB, free: 85.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02384/0.6883, allocations: 21.4 MB / 0.5332 GB, free: 67.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006719/0.689, allocations: 450.3 kB / 0.5336 GB, free: 67.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000208/0.6893, allocations: 28 kB / 0.5336 GB, free: 67.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009008/0.6902, allocations: 68.17 kB / 0.5337 GB, free: 67.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.6904, allocations: 93.19 kB / 0.5338 GB, free: 66.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.979e-05/0.6905, allocations: 43.98 kB / 0.5338 GB, free: 66.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001759/0.6922, allocations: 1.435 MB / 0.5352 GB, free: 65.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6922, allocations: 0 / 0.5352 GB, free: 65.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002412/0.6947, allocations: 0.7691 MB / 0.536 GB, free: 64.66 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 (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.0003167/0.695, allocations: 171.4 kB / 0.5361 GB, free: 64.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.6976, allocations: 2.103 MB / 0.5382 GB, free: 62.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.6976, allocations: 0.75 kB / 0.5382 GB, free: 62.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/0.6991, allocations: 1.384 MB / 0.5395 GB, free: 60.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/0.7016, allocations: 0.5104 MB / 0.54 GB, free: 60.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.7126, allocations: 9.061 MB / 0.5489 GB, free: 51.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001646/0.7143, allocations: 2.461 MB / 0.5513 GB, free: 48.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00173/0.716, allocations: 0.4985 MB / 0.5518 GB, free: 48.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004315/0.7165, allocations: 167.4 kB / 0.5519 GB, free: 48.12 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7165, allocations: 4 kB / 0.5519 GB, free: 48.12 MB / 378.7 MB Notification: Performance of Templates: time 0.04591/0.7624, allocations: 32.33 MB / 0.5835 GB, free: 16.12 MB / 378.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../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