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.001301/0.001301, allocations: 108.1 kB / 17.16 MB, free: 6.082 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.001262/0.001262, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.332/1.332, allocations: 222.9 MB / 241.8 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001182, allocations: 49.23 kB / 300.6 MB, free: 6.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1057, allocations: 49.45 MB / 350.1 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01809/0.1238, allocations: 15.69 MB / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2035/0.3274, allocations: 5.301 MB / 371.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003634/0.3311, allocations: 98.88 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004135/0.3352, allocations: 0.967 MB / 372.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005115/0.3404, allocations: 1.228 MB / 373.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002543/0.343, allocations: 0.8607 MB / 374.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007165/0.3501, allocations: 4.082 MB / 378.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006837/0.357, allocations: 3.049 MB / 381.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004508/0.3616, allocations: 1.582 MB / 382.9 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005467/0.3671, allocations: 2.126 MB / 385.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002011/0.3691, allocations: 315.6 kB / 385.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003491/0.3726, allocations: 0.5413 MB / 385.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002749/0.3754, allocations: 1.066 MB / 387 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00589/0.3813, allocations: 2.028 MB / 389 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008946/0.3903, allocations: 5.757 MB / 394.8 MB, free: 1.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.3903, allocations: 0 / 394.8 MB, free: 1.695 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.3903, allocations: 0 / 394.8 MB, free: 1.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002911/0.3906, allocations: 1.375 kB / 394.8 MB, free: 1.695 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.01516/0.4058, allocations: 4.671 MB / 399.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.4059, allocations: 8.656 kB / 399.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003374/0.4092, allocations: 0.6716 MB / 400.1 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005358/0.4146, allocations: 2.434 MB / 402.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.4149, allocations: 270.8 kB / 402.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006867/0.4156, allocations: 343.9 kB / 403.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.427, allocations: 4.469 MB / 407.6 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001599/0.4272, allocations: 3.906 kB / 407.6 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006983/0.4279, allocations: 143.2 kB / 407.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.4281, allocations: 162.8 kB / 407.9 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009088/0.4372, allocations: 3.755 MB / 411.7 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03282/0.47, allocations: 14.49 MB / 426.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00617/0.4763, allocations: 5.356 MB / 431.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002849/0.4792, allocations: 1.279 MB / 432.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.4895, allocations: 3.817 MB / 436.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.879e-05/0.4897, allocations: 47.88 kB / 436.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 7.374e-06/0.4897, allocations: 0 / 436.7 MB, free: 9.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.01287/0.5026, allocations: 5.502 MB / 442.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.5027, allocations: 64.72 kB / 442.2 MB, free: 3.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005027/0.5077, allocations: 2.098 MB / 444.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003286/0.5081, allocations: 49.7 kB / 444.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.5096, allocations: 1.659 MB / 446 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000706/0.5103, allocations: 462.4 kB / 446.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000787/0.5111, allocations: 339.2 kB / 446.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.5113, allocations: 305.1 kB / 447.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.5127, allocations: 0.7184 MB / 447.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/0.5145, allocations: 1.35 MB / 449.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0031/0.5176, allocations: 2.231 MB / 451.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/0.5176, allocations: 4 kB / 451.4 MB, free: 9.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004575/0.5222, allocations: 2.533 MB / 453.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.5223, allocations: 12 kB / 454 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-05/0.5223, allocations: 20.5 kB / 454 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.5228, allocations: 138.5 kB / 454.1 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/0.5246, allocations: 471.1 kB / 454.6 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002843/0.5274, allocations: 3.082 MB / 457.7 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/0.5297, allocations: 115.8 kB / 457.8 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003355/0.5301, allocations: 83.98 kB / 457.8 MB, free: 2.895 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.002494/0.5326, allocations: 1.048 MB / 458.9 MB, free: 1.836 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008875/0.5335, allocations: 217.3 kB / 459.1 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004324/0.5378, allocations: 2.19 MB / 461.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.5378, allocations: 12 kB / 461.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.5378, allocations: 4 kB / 461.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/0.5379, allocations: 11.97 kB / 461.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.548, allocations: 5.174 MB / 466.5 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.548, allocations: 0 / 466.5 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.5491, allocations: 227.7 kB / 466.7 MB, free: 9.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007849/0.5499, allocations: 283.4 kB / 467 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.55, allocations: 24 kB / 467 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006508/0.5565, allocations: 7.137 MB / 474.2 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5566, allocations: 0 / 474.2 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005211/0.5618, allocations: 3.189 MB / 477.3 MB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/0.5632, allocations: 458.3 kB / 477.8 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007044/0.5639, allocations: 31.94 kB / 477.8 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/0.5654, allocations: 71.91 kB / 477.9 MB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.5656, allocations: 93.56 kB / 478 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.11e-05/0.5657, allocations: 39.94 kB / 478 MB, free: 13.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00313/0.5689, allocations: 1.431 MB / 479.5 MB, free: 12.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5689, allocations: 0 / 479.5 MB, free: 12.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003212/0.5721, allocations: 0.5663 MB / 480 MB, free: 11.87 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.000524/0.5726, allocations: 166.1 kB / 480.2 MB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003984/0.5766, allocations: 2.102 MB / 482.3 MB, free: 9.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.565e-06/0.5767, allocations: 4 kB / 482.3 MB, free: 9.547 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002288/0.579, allocations: 1.381 MB / 483.7 MB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003707/0.5827, allocations: 0.5279 MB / 484.2 MB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.5973, allocations: 7.629 MB / 491.8 MB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003525/0.6009, allocations: 2.365 MB / 494.2 MB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/0.6019, allocations: 167.4 kB / 494.4 MB, free: 13.35 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6019, allocations: 0 / 494.4 MB, free: 13.35 MB / 414.1 MB Notification: Performance of Templates: time 0.2597/0.8616, allocations: 99.71 MB / 0.5801 GB, free: 114.4 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