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.001018/0.001018, allocations: 105.8 kB / 17.59 MB, free: 5.445 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.000999/0.0009991, allocations: 191.3 kB / 18.52 MB, free: 4.523 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.405/1.405, allocations: 222.9 MB / 242.2 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 42.86 kB / 301.3 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1057, allocations: 49.46 MB / 350.8 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.02191/0.1277, allocations: 15.89 MB / 366.7 MB, free: 4.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2204/0.3481, allocations: 5.356 MB / 372 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00393/0.3521, allocations: 104.8 kB / 372.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004101/0.3562, allocations: 1.114 MB / 373.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005351/0.3616, allocations: 1.361 MB / 374.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00278/0.3644, allocations: 0.9445 MB / 375.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006664/0.3711, allocations: 3.941 MB / 379.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004996/0.3761, allocations: 3.612 MB / 383.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004526/0.3807, allocations: 1.875 MB / 385 MB, free: 7.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005303/0.386, allocations: 2.272 MB / 387.2 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001521/0.3875, allocations: 0.5157 MB / 387.7 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002903/0.3905, allocations: 0.7586 MB / 388.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001348/0.3918, allocations: 1.287 MB / 389.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003855/0.3957, allocations: 2.25 MB / 392 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009626/0.4053, allocations: 6.83 MB / 398.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4054, allocations: 0 / 398.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.4054, allocations: 0 / 398.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003236/0.4057, allocations: 7.984 kB / 398.9 MB, free: 15.63 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.01651/0.4222, allocations: 4.667 MB / 403.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.4223, allocations: 8.031 kB / 403.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004068/0.4264, allocations: 0.6714 MB / 404.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006248/0.4327, allocations: 2.476 MB / 406.7 MB, free: 9.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003054/0.433, allocations: 263.9 kB / 407 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001146/0.4342, allocations: 343 kB / 407.3 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009905/0.4441, allocations: 4.468 MB / 411.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.209e-05/0.4442, allocations: 8 kB / 411.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003334/0.4445, allocations: 138 kB / 411.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001671/0.4447, allocations: 166.7 kB / 412.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007624/0.4523, allocations: 3.751 MB / 415.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02288/0.4753, allocations: 14.48 MB / 430.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00535/0.4807, allocations: 5.356 MB / 435.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/0.4828, allocations: 1.281 MB / 436.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007146/0.49, allocations: 3.826 MB / 440.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.4901, allocations: 43.88 kB / 440.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 4.589e-06/0.4901, allocations: 7.938 kB / 440.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01039/0.5005, allocations: 5.492 MB / 446.3 MB, free: 144 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.5006, allocations: 68.72 kB / 446.4 MB, free: 64 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.5038, allocations: 2.106 MB / 448.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.5039, allocations: 45.7 kB / 448.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001165/0.5051, allocations: 1.66 MB / 450.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004015/0.5055, allocations: 463.9 kB / 450.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005306/0.506, allocations: 339.1 kB / 451 MB, free: 11.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.5061, allocations: 301.1 kB / 451.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/0.5073, allocations: 0.7223 MB / 452 MB, free: 10.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.5089, allocations: 1.354 MB / 453.3 MB, free: 8.754 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002899/0.5118, allocations: 2.226 MB / 455.6 MB, free: 6.254 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.5119, allocations: 4 kB / 455.6 MB, free: 6.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004303/0.5162, allocations: 2.525 MB / 458.1 MB, free: 3.688 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.5162, allocations: 12 kB / 458.1 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.5163, allocations: 20 kB / 458.1 MB, free: 3.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003931/0.5167, allocations: 146.9 kB / 458.3 MB, free: 3.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001655/0.5183, allocations: 455.3 kB / 458.7 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/0.5212, allocations: 3.36 MB / 462.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/0.523, allocations: 115.8 kB / 462.2 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000151/0.5232, allocations: 80 kB / 462.3 MB, free: 15.23 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.002025/0.5252, allocations: 1.052 MB / 463.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004657/0.5257, allocations: 217.3 kB / 463.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003786/0.5295, allocations: 2.192 MB / 465.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.5295, allocations: 16 kB / 465.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.5295, allocations: 4 kB / 465.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.5296, allocations: 7.922 kB / 465.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008688/0.5383, allocations: 5.18 MB / 470.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.5383, allocations: 0 / 470.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.5393, allocations: 231.6 kB / 471.2 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007116/0.5401, allocations: 279.4 kB / 471.4 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.647e-05/0.5402, allocations: 32.11 kB / 471.5 MB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007259/0.5474, allocations: 7.826 MB / 479.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.5475, allocations: 4.141 kB / 479.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005045/0.5525, allocations: 3.182 MB / 482.5 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.5536, allocations: 454.4 kB / 482.9 MB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.5539, allocations: 27.98 kB / 482.9 MB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.555, allocations: 71.92 kB / 483 MB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.5552, allocations: 97.06 kB / 483.1 MB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.314e-05/0.5553, allocations: 39.98 kB / 483.1 MB, free: 9.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002397/0.5577, allocations: 1.431 MB / 484.6 MB, free: 8.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5577, allocations: 0 / 484.6 MB, free: 8.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002237/0.5599, allocations: 0.5626 MB / 485.1 MB, free: 7.492 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.0003616/0.5603, allocations: 173.8 kB / 485.3 MB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004911/0.5652, allocations: 2.58 MB / 487.9 MB, free: 4.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.5653, allocations: 0 / 487.9 MB, free: 4.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002038/0.5673, allocations: 1.383 MB / 489.3 MB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.5703, allocations: 0.539 MB / 489.8 MB, free: 2.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/0.5819, allocations: 6.155 MB / 496 MB, free: 12.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002219/0.5842, allocations: 2.373 MB / 498.3 MB, free: 10.11 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008167/0.585, allocations: 167.4 kB / 498.5 MB, free: 9.945 MB / 414.1 MB Notification: Performance of SimCode: time 9.11e-07/0.585, allocations: 0 / 498.5 MB, free: 9.945 MB / 414.1 MB Notification: Performance of Templates: time 0.2699/0.855, allocations: 99.72 MB / 0.5842 GB, free: 110.1 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 -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