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.001477/0.001477, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.00165/0.00165, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.313/1.313, allocations: 222.9 MB / 241.1 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000951/0.000951, allocations: 51.92 kB / 300 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08609/0.08706, allocations: 49.45 MB / 349.4 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01676/0.1039, allocations: 15.68 MB / 365.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1773/0.2812, allocations: 5.298 MB / 370.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002801/0.284, allocations: 99.56 kB / 370.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003651/0.2877, allocations: 0.9657 MB / 371.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005226/0.293, allocations: 1.227 MB / 372.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002512/0.2955, allocations: 0.873 MB / 373.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005607/0.3011, allocations: 4.074 MB / 377.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003504/0.3047, allocations: 3.053 MB / 380.7 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002739/0.3074, allocations: 1.583 MB / 382.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003403/0.3108, allocations: 2.116 MB / 384.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007271/0.3116, allocations: 323.1 kB / 384.7 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001617/0.3132, allocations: 0.5402 MB / 385.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008977/0.3141, allocations: 1.073 MB / 386.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002437/0.3165, allocations: 2.022 MB / 388.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005438/0.322, allocations: 6.667 MB / 395 MB, free: 1.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.322, allocations: 0 / 395 MB, free: 1.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.322, allocations: 3.938 kB / 395 MB, free: 1.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001512/0.3222, allocations: 1.375 kB / 395 MB, free: 1.25 MB / 302.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.0119/0.3341, allocations: 4.662 MB / 399.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.3342, allocations: 8.531 kB / 399.7 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003285/0.3375, allocations: 0.6776 MB / 400.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004573/0.342, allocations: 2.433 MB / 402.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002418/0.3423, allocations: 266.5 kB / 403.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005164/0.3428, allocations: 346.6 kB / 403.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008275/0.3511, allocations: 4.467 MB / 407.9 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.053e-05/0.3512, allocations: 7.844 kB / 407.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/0.3516, allocations: 150.7 kB / 408 MB, free: 6.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/0.3517, allocations: 162.8 kB / 408.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00681/0.3585, allocations: 3.751 MB / 411.9 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02394/0.3825, allocations: 14.48 MB / 426.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005202/0.3877, allocations: 5.363 MB / 431.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002012/0.3898, allocations: 1.274 MB / 433 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007079/0.3969, allocations: 3.826 MB / 436.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.391e-05/0.397, allocations: 43.88 kB / 436.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 3.226e-06/0.397, allocations: 0 / 436.9 MB, free: 8.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01081/0.4078, allocations: 5.491 MB / 442.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.4079, allocations: 64.72 kB / 442.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003291/0.4112, allocations: 2.102 MB / 444.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001501/0.4113, allocations: 53.7 kB / 444.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.4125, allocations: 1.658 MB / 446.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000389/0.4129, allocations: 466.5 kB / 446.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005097/0.4134, allocations: 335.2 kB / 447.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.97e-05/0.4135, allocations: 301.1 kB / 447.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.4147, allocations: 0.7184 MB / 448.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.4162, allocations: 1.359 MB / 449.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.4191, allocations: 2.225 MB / 451.7 MB, free: 9 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.4191, allocations: 4 kB / 451.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004102/0.4232, allocations: 2.525 MB / 454.2 MB, free: 6.434 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.4232, allocations: 12 kB / 454.2 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/0.4233, allocations: 23.94 kB / 454.2 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003929/0.4237, allocations: 142.4 kB / 454.4 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.4253, allocations: 463.4 kB / 454.8 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/0.4278, allocations: 3.085 MB / 457.9 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.4295, allocations: 115.7 kB / 458 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.4296, allocations: 80 kB / 458.1 MB, free: 2.258 MB / 366.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.001793/0.4314, allocations: 1.055 MB / 459.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004442/0.4319, allocations: 217.3 kB / 459.4 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003538/0.4354, allocations: 2.185 MB / 461.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.4354, allocations: 16 kB / 461.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4355, allocations: 4 kB / 461.6 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4355, allocations: 7.984 kB / 461.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008205/0.4437, allocations: 5.175 MB / 466.8 MB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.4437, allocations: 8.25 kB / 466.8 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.4448, allocations: 231.6 kB / 467 MB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007325/0.4455, allocations: 271.2 kB / 467.3 MB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.505e-05/0.4456, allocations: 31.98 kB / 467.3 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006413/0.452, allocations: 7.133 MB / 474.4 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.4521, allocations: 3.938 kB / 474.4 MB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00487/0.4569, allocations: 3.187 MB / 477.6 MB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009847/0.458, allocations: 462.3 kB / 478.1 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002827/0.4582, allocations: 31.94 kB / 478.1 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009705/0.4592, allocations: 75.92 kB / 478.2 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.4594, allocations: 89.12 kB / 478.3 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.639e-05/0.4595, allocations: 39.98 kB / 478.3 MB, free: 13.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002295/0.4618, allocations: 1.427 MB / 479.7 MB, free: 11.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4618, allocations: 7.938 kB / 479.7 MB, free: 11.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001981/0.4638, allocations: 0.5626 MB / 480.3 MB, free: 11.22 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.0003188/0.4642, allocations: 167 kB / 480.5 MB, free: 11.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003176/0.4673, allocations: 2.098 MB / 482.5 MB, free: 8.902 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.4674, allocations: 8.188 kB / 482.6 MB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002006/0.4694, allocations: 1.388 MB / 483.9 MB, free: 7.461 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002658/0.472, allocations: 0.5153 MB / 484.5 MB, free: 6.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/0.4831, allocations: 7.611 MB / 492.1 MB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002147/0.4853, allocations: 2.417 MB / 494.5 MB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001845/0.4871, allocations: 498.5 kB / 495 MB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/0.4876, allocations: 151.4 kB / 495.1 MB, free: 12.2 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4876, allocations: 0 / 495.1 MB, free: 12.2 MB / 414.1 MB Notification: Performance of Templates: time 0.04825/0.5359, allocations: 27.46 MB / 0.5103 GB, free: 1.039 MB / 430.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/jenkins/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/jenkins/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