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.00109/0.00109, allocations: 111.5 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.001134/0.001134, allocations: 200 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.28/1.28, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009255/0.0009256, allocations: 43.94 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.322, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01812/0.3402, allocations: 15.9 MB / 416.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01197/0.3522, allocations: 5.368 MB / 422 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003205/0.3555, allocations: 99.62 kB / 422.1 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.3592, allocations: 1.126 MB / 423.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005382/0.3647, allocations: 1.359 MB / 424.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002833/0.3675, allocations: 0.9564 MB / 425.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006563/0.3741, allocations: 3.959 MB / 429.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005086/0.3792, allocations: 3.608 MB / 433.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003682/0.383, allocations: 1.896 MB / 435 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004904/0.3879, allocations: 2.277 MB / 437.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001781/0.3897, allocations: 0.5195 MB / 437.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.3919, allocations: 0.7342 MB / 438.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.3931, allocations: 1.293 MB / 439.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002524/0.3956, allocations: 2.252 MB / 442.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00783/0.4035, allocations: 6.905 MB / 449 MB, free: 8.367 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.4035, allocations: 0 / 449 MB, free: 8.367 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4035, allocations: 0 / 449 MB, free: 8.367 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002421/0.4038, allocations: 0 / 449 MB, free: 8.367 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.0137/0.4175, allocations: 4.673 MB / 453.7 MB, free: 3.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.4176, allocations: 8.031 kB / 453.7 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0031/0.4207, allocations: 0.6753 MB / 454.4 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005119/0.4258, allocations: 2.529 MB / 456.9 MB, free: 360 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.4261, allocations: 263.3 kB / 457.1 MB, free: 96 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008615/0.4269, allocations: 348.1 kB / 457.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008655/0.4356, allocations: 4.468 MB / 461.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.327e-05/0.4357, allocations: 4 kB / 461.9 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/0.436, allocations: 144 kB / 462.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001566/0.4362, allocations: 166.7 kB / 462.3 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006685/0.4429, allocations: 3.747 MB / 466 MB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0241/0.467, allocations: 14.3 MB / 480.3 MB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005304/0.4724, allocations: 5.367 MB / 485.7 MB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001918/0.4744, allocations: 1.251 MB / 486.9 MB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006524/0.4809, allocations: 3.824 MB / 490.7 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.279e-05/0.481, allocations: 47.81 kB / 490.8 MB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.287e-06/0.481, allocations: 0 / 490.8 MB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01003/0.491, allocations: 5.495 MB / 496.3 MB, free: 7.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.4911, allocations: 68.72 kB / 496.3 MB, free: 7.414 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003061/0.4942, allocations: 2.109 MB / 498.5 MB, free: 5.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.4943, allocations: 49.7 kB / 498.5 MB, free: 5.215 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.4954, allocations: 1.653 MB / 0.4884 GB, free: 3.543 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003742/0.4958, allocations: 461.4 kB / 0.4889 GB, free: 3.086 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005361/0.4964, allocations: 339.1 kB / 0.4892 GB, free: 2.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.4965, allocations: 301.1 kB / 0.4895 GB, free: 2.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/0.4976, allocations: 0.7184 MB / 0.4902 GB, free: 1.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.4991, allocations: 1.356 MB / 0.4915 GB, free: 88 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/0.5019, allocations: 2.222 MB / 0.4937 GB, free: 13.58 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/0.5019, allocations: 15.94 kB / 0.4937 GB, free: 13.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003835/0.5057, allocations: 2.517 MB / 0.4962 GB, free: 11.01 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.5058, allocations: 12 kB / 0.4962 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.283e-05/0.5058, allocations: 24 kB / 0.4962 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003607/0.5062, allocations: 142.9 kB / 0.4963 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.5078, allocations: 463.3 kB / 0.4968 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002534/0.5103, allocations: 3.356 MB / 0.5 GB, free: 6.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.5119, allocations: 107.9 kB / 0.5001 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.512, allocations: 87.98 kB / 0.5002 GB, free: 6.543 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.001687/0.5137, allocations: 1.055 MB / 0.5013 GB, free: 5.477 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003785/0.5141, allocations: 213.3 kB / 0.5015 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003848/0.518, allocations: 2.189 MB / 0.5036 GB, free: 3.016 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.518, allocations: 12 kB / 0.5036 GB, free: 3.004 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/0.518, allocations: 4 kB / 0.5036 GB, free: 3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.518, allocations: 7.922 kB / 0.5036 GB, free: 2.992 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.5284, allocations: 5.178 MB / 0.5087 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.5284, allocations: 0 / 0.5087 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.5295, allocations: 235.6 kB / 0.5089 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007071/0.5302, allocations: 271.4 kB / 0.5092 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-05/0.5303, allocations: 31.98 kB / 0.5092 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008843/0.5391, allocations: 7.822 MB / 0.5168 GB, free: 4.762 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5392, allocations: 3.984 kB / 0.5168 GB, free: 4.758 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00592/0.5451, allocations: 3.184 MB / 0.5199 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.5464, allocations: 454.4 kB / 0.5204 GB, free: 1.016 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005877/0.5471, allocations: 27.98 kB / 0.5204 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.5485, allocations: 75.92 kB / 0.5205 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.5487, allocations: 97.06 kB / 0.5206 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.19e-05/0.5488, allocations: 35.98 kB / 0.5206 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003062/0.5519, allocations: 1.431 MB / 0.522 GB, free: 15.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5519, allocations: 0 / 0.522 GB, free: 15.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002364/0.5543, allocations: 0.5547 MB / 0.5225 GB, free: 14.78 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.0003916/0.5547, allocations: 185.2 kB / 0.5227 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003621/0.5583, allocations: 2.104 MB / 0.5248 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5583, allocations: 4.5 kB / 0.5248 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002099/0.5604, allocations: 1.396 MB / 0.5261 GB, free: 10.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002821/0.5633, allocations: 0.5566 MB / 0.5267 GB, free: 10.44 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.5747, allocations: 6.029 MB / 0.5326 GB, free: 4.355 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002974/0.5777, allocations: 2.429 MB / 0.5349 GB, free: 1.891 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001692/0.5794, allocations: 494.5 kB / 0.5354 GB, free: 1.406 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005465/0.5799, allocations: 155.4 kB / 0.5356 GB, free: 1.258 MB / 462.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5799, allocations: 0 / 0.5356 GB, free: 1.258 MB / 462.1 MB Notification: Performance of Templates: time 0.2393/0.8192, allocations: 27.18 MB / 0.5621 GB, free: 113.2 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