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.001433/0.001433, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001496/0.001496, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 44.06 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2619, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01645/0.2784, allocations: 15.91 MB / 417.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009842/0.2883, allocations: 5.368 MB / 422.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004035/0.2923, allocations: 99.62 kB / 422.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003612/0.296, allocations: 1.114 MB / 423.9 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005083/0.3012, allocations: 1.367 MB / 425.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002808/0.304, allocations: 0.9407 MB / 426.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006123/0.3101, allocations: 3.957 MB / 430.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005535/0.3157, allocations: 3.623 MB / 433.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003004/0.3187, allocations: 1.892 MB / 435.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004077/0.3228, allocations: 2.277 MB / 438 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001615/0.3244, allocations: 0.5156 MB / 438.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002801/0.3272, allocations: 0.738 MB / 439.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002175/0.3294, allocations: 1.297 MB / 440.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004618/0.3341, allocations: 2.252 MB / 442.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009812/0.3439, allocations: 6.906 MB / 449.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.344, allocations: 0 / 449.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.344, allocations: 0 / 449.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002551/0.3442, allocations: 0 / 449.7 MB, free: 8.387 MB / 366.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.01263/0.3569, allocations: 4.673 MB / 454.4 MB, free: 3.641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.3569, allocations: 8.031 kB / 454.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003039/0.36, allocations: 0.6714 MB / 455 MB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004399/0.3644, allocations: 2.529 MB / 457.6 MB, free: 384 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.3646, allocations: 263.2 kB / 457.8 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005304/0.3651, allocations: 352.1 kB / 458.2 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007374/0.3725, allocations: 4.464 MB / 462.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-05/0.3726, allocations: 7.984 kB / 462.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003215/0.3729, allocations: 144 kB / 462.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.3731, allocations: 158.8 kB / 462.9 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00656/0.3797, allocations: 3.751 MB / 466.7 MB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02326/0.4029, allocations: 14.3 MB / 481 MB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005354/0.4083, allocations: 5.364 MB / 486.3 MB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001934/0.4103, allocations: 1.26 MB / 487.6 MB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006541/0.4169, allocations: 3.811 MB / 491.4 MB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.4169, allocations: 47.81 kB / 491.5 MB, free: 13.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.326e-06/0.4169, allocations: 0 / 491.5 MB, free: 13.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.009545/0.4265, allocations: 5.495 MB / 497 MB, free: 7.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.4266, allocations: 68.72 kB / 497 MB, free: 7.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002886/0.4295, allocations: 2.109 MB / 499.1 MB, free: 5.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.4296, allocations: 49.64 kB / 499.2 MB, free: 5.242 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.4307, allocations: 1.653 MB / 0.4891 GB, free: 3.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003739/0.4311, allocations: 469.4 kB / 0.4895 GB, free: 3.105 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004738/0.4316, allocations: 339.1 kB / 0.4899 GB, free: 2.766 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.731e-05/0.4317, allocations: 301.1 kB / 0.4902 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.4328, allocations: 0.7184 MB / 0.4909 GB, free: 1.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/0.4343, allocations: 1.352 MB / 0.4922 GB, free: 112 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002677/0.437, allocations: 2.226 MB / 0.4944 GB, free: 13.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.437, allocations: 8 kB / 0.4944 GB, free: 13.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003942/0.441, allocations: 2.521 MB / 0.4968 GB, free: 11.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.441, allocations: 12.03 kB / 0.4968 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-05/0.441, allocations: 28 kB / 0.4969 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003779/0.4414, allocations: 134.5 kB / 0.497 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.443, allocations: 463.2 kB / 0.4974 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002578/0.4456, allocations: 3.36 MB / 0.5007 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.4473, allocations: 111.8 kB / 0.5008 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/0.4475, allocations: 80 kB / 0.5009 GB, free: 6.559 MB / 430.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.001706/0.4492, allocations: 1.059 MB / 0.5019 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004347/0.4496, allocations: 213.3 kB / 0.5021 GB, free: 5.277 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003649/0.4533, allocations: 2.185 MB / 0.5043 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.4533, allocations: 12 kB / 0.5043 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.4533, allocations: 4 kB / 0.5043 GB, free: 3.016 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.4534, allocations: 7.922 kB / 0.5043 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009064/0.4624, allocations: 5.178 MB / 0.5093 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.477e-06/0.4625, allocations: 4 kB / 0.5093 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009998/0.4635, allocations: 235.9 kB / 0.5096 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006538/0.4642, allocations: 271.2 kB / 0.5098 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-05/0.4642, allocations: 39.98 kB / 0.5099 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006483/0.4707, allocations: 7.814 MB / 0.5175 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.4708, allocations: 0 / 0.5175 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004959/0.4757, allocations: 3.188 MB / 0.5206 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/0.4771, allocations: 454.4 kB / 0.521 GB, free: 1.027 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003475/0.4775, allocations: 31.98 kB / 0.5211 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/0.4785, allocations: 67.92 kB / 0.5211 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.4788, allocations: 93.12 kB / 0.5212 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/0.4789, allocations: 39.98 kB / 0.5213 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002419/0.4813, allocations: 1.435 MB / 0.5227 GB, free: 15.35 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4813, allocations: 384 / 0.5227 GB, free: 15.35 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002492/0.4838, allocations: 0.5547 MB / 0.5232 GB, free: 14.79 MB / 462.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.0004046/0.4842, allocations: 178.9 kB / 0.5234 GB, free: 14.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003375/0.4876, allocations: 2.114 MB / 0.5254 GB, free: 12.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.4876, allocations: 0 / 0.5254 GB, free: 12.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002029/0.4896, allocations: 1.386 MB / 0.5268 GB, free: 11.01 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002892/0.4926, allocations: 0.5515 MB / 0.5273 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.504, allocations: 6.073 MB / 0.5333 GB, free: 4.332 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002246/0.5062, allocations: 2.373 MB / 0.5356 GB, free: 1.926 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008406/0.5071, allocations: 167.4 kB / 0.5357 GB, free: 1.766 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5071, allocations: 0 / 0.5357 GB, free: 1.766 MB / 462.1 MB Notification: Performance of Templates: time 0.3487/0.8559, allocations: 100.1 MB / 0.6335 GB, free: 40.79 MB / 462.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 -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