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.001508/0.001508, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.00179/0.00179, allocations: 194.8 kB / 18.01 MB, free: 5.055 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.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008997/0.0008997, allocations: 43.94 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3342, allocations: 49.44 MB / 400.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.018/0.3523, allocations: 15.9 MB / 416.6 MB, free: 8.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01434/0.3666, allocations: 5.368 MB / 422 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004076/0.3708, allocations: 107.6 kB / 422.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003992/0.3748, allocations: 1.122 MB / 423.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005539/0.3804, allocations: 1.343 MB / 424.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002682/0.3831, allocations: 0.9509 MB / 425.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005672/0.3888, allocations: 3.973 MB / 429.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004449/0.3932, allocations: 3.607 MB / 433.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002624/0.3959, allocations: 1.885 MB / 435 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00282/0.3987, allocations: 2.273 MB / 437.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007164/0.3994, allocations: 0.5156 MB / 437.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.4009, allocations: 0.7419 MB / 438.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001179/0.4021, allocations: 1.289 MB / 439.8 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002563/0.4047, allocations: 2.256 MB / 442.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008127/0.4128, allocations: 6.929 MB / 449 MB, free: 8.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.4129, allocations: 0 / 449 MB, free: 8.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4129, allocations: 0 / 449 MB, free: 8.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000133/0.413, allocations: 0 / 449 MB, free: 8.355 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.01047/0.4235, allocations: 4.777 MB / 453.8 MB, free: 3.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4235, allocations: 8.031 kB / 453.8 MB, free: 3.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002882/0.4264, allocations: 0.6893 MB / 454.5 MB, free: 2.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004114/0.4306, allocations: 2.546 MB / 457 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002289/0.4308, allocations: 263.4 kB / 457.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000504/0.4313, allocations: 352 kB / 457.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007352/0.4387, allocations: 4.46 MB / 462.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-05/0.4388, allocations: 11.98 kB / 462.1 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003124/0.4391, allocations: 140 kB / 462.2 MB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001633/0.4393, allocations: 166.8 kB / 462.4 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006167/0.4454, allocations: 3.751 MB / 466.1 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.4664, allocations: 14.35 MB / 480.5 MB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005774/0.4722, allocations: 5.361 MB / 485.9 MB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001969/0.4742, allocations: 1.259 MB / 487.1 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006175/0.4804, allocations: 3.815 MB / 490.9 MB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.442e-05/0.4805, allocations: 51.81 kB / 491 MB, free: 12.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.715e-06/0.4805, allocations: 0 / 491 MB, free: 12.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.009579/0.4901, allocations: 5.555 MB / 496.5 MB, free: 7.238 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.4901, allocations: 68.72 kB / 496.6 MB, free: 7.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003021/0.4931, allocations: 2.102 MB / 498.7 MB, free: 5.023 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.4933, allocations: 49.7 kB / 498.8 MB, free: 4.969 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/0.4945, allocations: 1.701 MB / 0.4887 GB, free: 3.254 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.4948, allocations: 483.9 kB / 0.4892 GB, free: 2.777 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004988/0.4953, allocations: 335.4 kB / 0.4895 GB, free: 2.441 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.091e-05/0.4954, allocations: 305.1 kB / 0.4898 GB, free: 2.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.4965, allocations: 0.7223 MB / 0.4905 GB, free: 1.418 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.4981, allocations: 1.348 MB / 0.4918 GB, free: 15.78 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002909/0.501, allocations: 2.234 MB / 0.494 GB, free: 13.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.689e-06/0.5011, allocations: 8 kB / 0.494 GB, free: 13.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003709/0.5048, allocations: 2.53 MB / 0.4965 GB, free: 10.69 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/0.5048, allocations: 12.5 kB / 0.4965 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.5048, allocations: 24 kB / 0.4965 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004217/0.5053, allocations: 138.5 kB / 0.4966 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.5069, allocations: 467.2 kB / 0.4971 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002926/0.5098, allocations: 3.353 MB / 0.5004 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.5114, allocations: 115.9 kB / 0.5005 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.5115, allocations: 84 kB / 0.5006 GB, free: 6.223 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.002242/0.5138, allocations: 1.048 MB / 0.5016 GB, free: 5.164 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004852/0.5143, allocations: 226.5 kB / 0.5018 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00415/0.5184, allocations: 2.193 MB / 0.5039 GB, free: 2.688 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.5185, allocations: 12 kB / 0.504 GB, free: 2.676 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.5185, allocations: 4 kB / 0.504 GB, free: 2.672 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.5185, allocations: 7.922 kB / 0.504 GB, free: 2.664 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008728/0.5272, allocations: 5.175 MB / 0.509 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.5273, allocations: 0 / 0.509 GB, free: 13.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009936/0.5283, allocations: 235.6 kB / 0.5092 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007311/0.529, allocations: 275.4 kB / 0.5095 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-05/0.5291, allocations: 27.98 kB / 0.5095 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007263/0.5364, allocations: 7.83 MB / 0.5172 GB, free: 4.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5364, allocations: 4.031 kB / 0.5172 GB, free: 4.426 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005278/0.5417, allocations: 3.197 MB / 0.5203 GB, free: 1.137 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.5427, allocations: 467.6 kB / 0.5207 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.543, allocations: 31.98 kB / 0.5208 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009469/0.544, allocations: 67.92 kB / 0.5208 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.5442, allocations: 93.12 kB / 0.5209 GB, free: 484 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-05/0.5443, allocations: 40.23 kB / 0.521 GB, free: 444 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002425/0.5467, allocations: 1.435 MB / 0.5224 GB, free: 14.98 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5467, allocations: 0 / 0.5224 GB, free: 14.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002379/0.5491, allocations: 0.5624 MB / 0.5229 GB, free: 14.41 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.000451/0.5496, allocations: 171 kB / 0.5231 GB, free: 14.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.553, allocations: 2.111 MB / 0.5251 GB, free: 12.08 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.553, allocations: 4 kB / 0.5251 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002048/0.5551, allocations: 1.382 MB / 0.5265 GB, free: 10.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00244/0.5575, allocations: 0.563 MB / 0.527 GB, free: 10.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00954/0.5671, allocations: 6.151 MB / 0.5331 GB, free: 3.879 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002037/0.5691, allocations: 2.417 MB / 0.5354 GB, free: 1.426 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001544/0.5707, allocations: 498.5 kB / 0.5359 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004202/0.5711, allocations: 151.4 kB / 0.536 GB, free: 0.793 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5711, allocations: 0 / 0.536 GB, free: 0.793 MB / 462.1 MB Notification: Performance of Templates: time 0.2362/0.8073, allocations: 27.18 MB / 0.5626 GB, free: 112.6 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/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