Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001791/0.001791, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002075/0.002075, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 230.4 MB / 250 MB, free: 9.043 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 67.83 kB / 367.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.273, allocations: 53.31 MB / 420.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.0195/0.2925, allocations: 16.58 MB / 437.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.3041, allocations: 5.641 MB / 442.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003208/0.3073, allocations: 107.6 kB / 443 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003593/0.3109, allocations: 1.204 MB / 444.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004841/0.3158, allocations: 1.367 MB / 445.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00267/0.3184, allocations: 0.9936 MB / 446.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005978/0.3244, allocations: 3.996 MB / 450.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003806/0.3282, allocations: 2.605 MB / 453.2 MB, free: 7.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.3312, allocations: 1.904 MB / 455.1 MB, free: 5.773 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003385/0.3346, allocations: 2.378 MB / 457.5 MB, free: 3.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007415/0.3354, allocations: 0.5156 MB / 458 MB, free: 2.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3369, allocations: 0.7614 MB / 458.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001236/0.3381, allocations: 1.305 MB / 460 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002548/0.3407, allocations: 2.256 MB / 462.3 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008296/0.349, allocations: 6.952 MB / 469.2 MB, free: 7.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.349, allocations: 3.938 kB / 469.2 MB, free: 7.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.349, allocations: 0 / 469.2 MB, free: 7.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001721/0.3491, allocations: 0 / 469.2 MB, free: 7.555 MB / 382.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.01156/0.3607, allocations: 4.808 MB / 474.1 MB, free: 2.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.3607, allocations: 8.031 kB / 474.1 MB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/0.3638, allocations: 0.6971 MB / 474.8 MB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005527/0.3693, allocations: 2.558 MB / 477.3 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/0.3696, allocations: 263.3 kB / 477.6 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009403/0.3706, allocations: 352.1 kB / 477.9 MB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009619/0.3802, allocations: 4.464 MB / 482.4 MB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.731e-05/0.3803, allocations: 11.89 kB / 482.4 MB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003654/0.3806, allocations: 144 kB / 482.5 MB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/0.3808, allocations: 162.8 kB / 482.7 MB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007558/0.3884, allocations: 3.755 MB / 486.4 MB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02512/0.4135, allocations: 14.5 MB / 0.4892 GB, free: 7.199 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005775/0.4193, allocations: 5.498 MB / 0.4946 GB, free: 0.957 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003208/0.4225, allocations: 1.586 MB / 0.4961 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007632/0.4301, allocations: 4.223 MB / 0.5002 GB, free: 11.01 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.4302, allocations: 47.81 kB / 0.5003 GB, free: 10.95 MB / 430.1 MB Notification: Performance of pre-optimization done (n=128): time 3.436e-06/0.4302, allocations: 0 / 0.5003 GB, free: 10.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.01063/0.4408, allocations: 5.708 MB / 0.5059 GB, free: 5.078 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.4409, allocations: 76.59 kB / 0.5059 GB, free: 4.992 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003194/0.4441, allocations: 2.122 MB / 0.508 GB, free: 2.836 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.4442, allocations: 45.7 kB / 0.5081 GB, free: 2.785 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001311/0.4455, allocations: 1.705 MB / 0.5097 GB, free: 1.066 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004283/0.4459, allocations: 483.9 kB / 0.5102 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005325/0.4464, allocations: 339.4 kB / 0.5105 GB, free: 256 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4466, allocations: 301.1 kB / 0.5108 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.4478, allocations: 0.7301 MB / 0.5115 GB, free: 15.22 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001741/0.4495, allocations: 1.368 MB / 0.5128 GB, free: 13.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0031/0.4526, allocations: 2.25 MB / 0.515 GB, free: 11.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.337e-06/0.4526, allocations: 4 kB / 0.515 GB, free: 11.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004545/0.4572, allocations: 2.609 MB / 0.5176 GB, free: 8.387 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.4572, allocations: 18.64 kB / 0.5176 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.053e-05/0.4572, allocations: 23.98 kB / 0.5176 GB, free: 8.348 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005327/0.4578, allocations: 186.8 kB / 0.5178 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001702/0.4595, allocations: 459.2 kB / 0.5182 GB, free: 7.707 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003708/0.4632, allocations: 3.778 MB / 0.5219 GB, free: 3.645 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.4648, allocations: 127.9 kB / 0.5221 GB, free: 3.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/0.465, allocations: 79.98 kB / 0.5221 GB, free: 3.441 MB / 446.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 (224): * Single equations (assignments): 221 * 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,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001985/0.4669, allocations: 1.048 MB / 0.5232 GB, free: 2.383 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005312/0.4675, allocations: 230.5 kB / 0.5234 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.4715, allocations: 2.26 MB / 0.5256 GB, free: 15.84 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.4715, allocations: 12 kB / 0.5256 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.4716, allocations: 8 kB / 0.5256 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.4716, allocations: 11.91 kB / 0.5256 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008982/0.4805, allocations: 5.285 MB / 0.5308 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.4806, allocations: 4 kB / 0.5308 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.4816, allocations: 223.7 kB / 0.531 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008811/0.4825, allocations: 327.3 kB / 0.5313 GB, free: 9.824 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.936e-05/0.4826, allocations: 27.98 kB / 0.5313 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008367/0.491, allocations: 8.239 MB / 0.5394 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.491, allocations: 4 kB / 0.5394 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2114/0.7024, allocations: 3.279 MB / 0.5426 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008902/0.7033, allocations: 472.9 kB / 0.543 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.7035, allocations: 33.86 kB / 0.5431 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009608/0.7045, allocations: 69.33 kB / 0.5431 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002146/0.7047, allocations: 89.38 kB / 0.5432 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.137e-05/0.7048, allocations: 40.91 kB / 0.5433 GB, free: 113.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.7067, allocations: 1.444 MB / 0.5447 GB, free: 113.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7067, allocations: 0 / 0.5447 GB, free: 113.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001764/0.7084, allocations: 0.5668 MB / 0.5452 GB, free: 113.1 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 (109): * Single equations (assignments): 105 * 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,8,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.0002718/0.7087, allocations: 169.6 kB / 0.5454 GB, free: 113 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002911/0.7116, allocations: 2.078 MB / 0.5474 GB, free: 112.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.7116, allocations: 3.938 kB / 0.5474 GB, free: 112.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00156/0.7132, allocations: 1.359 MB / 0.5487 GB, free: 111.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.7157, allocations: 0.5698 MB / 0.5493 GB, free: 111.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008905/0.7246, allocations: 6.19 MB / 0.5553 GB, free: 108.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/0.7261, allocations: 2.423 MB / 0.5577 GB, free: 107.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001479/0.7276, allocations: 491.7 kB / 0.5582 GB, free: 107 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003806/0.7279, allocations: 154.6 kB / 0.5583 GB, free: 107 MB / 462.1 MB Notification: Performance of SimCode: time 1.273e-06/0.7279, allocations: 3.5 kB / 0.5583 GB, free: 107 MB / 462.1 MB Notification: Performance of Templates: time 0.04174/0.7697, allocations: 28.16 MB / 0.5858 GB, free: 80.58 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches