Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_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.001066/0.001066, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 59.89 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3161, allocations: 50.54 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01869/0.3348, allocations: 16.51 MB / 425.8 MB, free: 1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.346, allocations: 5.626 MB / 431.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003222/0.3493, allocations: 107.6 kB / 431.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003262/0.3526, allocations: 1.137 MB / 432.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004797/0.3574, allocations: 1.32 MB / 434 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002419/0.3598, allocations: 0.9944 MB / 435 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005287/0.3651, allocations: 3.99 MB / 438.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004143/0.3693, allocations: 3.615 MB / 442.6 MB, free: 92 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003188/0.3725, allocations: 1.908 MB / 444.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00354/0.3761, allocations: 2.343 MB / 446.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007683/0.3768, allocations: 0.5234 MB / 447.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.3786, allocations: 0.7615 MB / 448.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.3798, allocations: 1.289 MB / 449.4 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002428/0.3822, allocations: 2.256 MB / 451.6 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007924/0.3902, allocations: 6.929 MB / 458.6 MB, free: 32 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3902, allocations: 3.938 kB / 458.6 MB, free: 28 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3902, allocations: 0 / 458.6 MB, free: 28 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001771/0.3904, allocations: 0 / 458.6 MB, free: 28 kB / 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.01282/0.4032, allocations: 4.696 MB / 463.3 MB, free: 11.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4033, allocations: 12.03 kB / 463.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003197/0.4065, allocations: 0.6753 MB / 464 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00447/0.411, allocations: 2.537 MB / 466.5 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.4112, allocations: 263.3 kB / 466.8 MB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005585/0.4118, allocations: 352 kB / 467.1 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008172/0.42, allocations: 4.468 MB / 471.6 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.289e-05/0.4201, allocations: 7.844 kB / 471.6 MB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000342/0.4204, allocations: 144 kB / 471.7 MB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000189/0.4206, allocations: 166.7 kB / 471.9 MB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006698/0.4273, allocations: 3.751 MB / 475.6 MB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02483/0.4522, allocations: 14.48 MB / 490.1 MB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005689/0.4579, allocations: 5.614 MB / 495.7 MB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003206/0.4611, allocations: 1.689 MB / 497.4 MB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007191/0.4683, allocations: 4.211 MB / 0.4899 GB, free: 3.445 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.4684, allocations: 55.81 kB / 0.4899 GB, free: 3.383 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.885e-06/0.4684, allocations: 0 / 0.4899 GB, free: 3.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01041/0.4788, allocations: 5.659 MB / 0.4954 GB, free: 13.55 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.4789, allocations: 72.59 kB / 0.4955 GB, free: 13.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003188/0.4821, allocations: 2.115 MB / 0.4976 GB, free: 11.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000167/0.4823, allocations: 45.7 kB / 0.4976 GB, free: 11.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.4834, allocations: 1.665 MB / 0.4992 GB, free: 9.586 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004309/0.4839, allocations: 461.3 kB / 0.4997 GB, free: 9.129 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005449/0.4844, allocations: 339.2 kB / 0.5 GB, free: 8.789 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4846, allocations: 309.1 kB / 0.5003 GB, free: 8.484 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.4859, allocations: 0.7262 MB / 0.501 GB, free: 7.758 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.4876, allocations: 1.364 MB / 0.5023 GB, free: 6.105 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002928/0.4905, allocations: 2.253 MB / 0.5045 GB, free: 3.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.246e-05/0.4905, allocations: 8 kB / 0.5046 GB, free: 3.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004456/0.495, allocations: 2.596 MB / 0.5071 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.495, allocations: 12 kB / 0.5071 GB, free: 0.918 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.184e-05/0.4951, allocations: 23.98 kB / 0.5071 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004998/0.4956, allocations: 190.9 kB / 0.5073 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/0.4972, allocations: 459.2 kB / 0.5077 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003408/0.5006, allocations: 3.777 MB / 0.5114 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.5023, allocations: 119.7 kB / 0.5115 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.5025, allocations: 79.98 kB / 0.5116 GB, free: 11.99 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.001884/0.5044, allocations: 1.059 MB / 0.5127 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003944/0.5048, allocations: 221.2 kB / 0.5129 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003692/0.5085, allocations: 2.264 MB / 0.5151 GB, free: 8.383 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.5085, allocations: 12 kB / 0.5151 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.5085, allocations: 8 kB / 0.5151 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.5085, allocations: 7.969 kB / 0.5151 GB, free: 8.355 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008145/0.5167, allocations: 5.3 MB / 0.5203 GB, free: 2.914 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.5167, allocations: 4 kB / 0.5203 GB, free: 2.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.5177, allocations: 228 kB / 0.5205 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008624/0.5186, allocations: 323.2 kB / 0.5208 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.5188, allocations: 28 kB / 0.5208 GB, free: 2.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008041/0.5268, allocations: 8.234 MB / 0.5289 GB, free: 9.531 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.5269, allocations: 4.031 kB / 0.5289 GB, free: 9.527 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005313/0.5322, allocations: 3.29 MB / 0.5321 GB, free: 6.145 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/0.5335, allocations: 462.3 kB / 0.5325 GB, free: 5.672 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006538/0.5342, allocations: 28 kB / 0.5326 GB, free: 5.645 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/0.5356, allocations: 67.92 kB / 0.5326 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.5359, allocations: 93.12 kB / 0.5327 GB, free: 5.488 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-05/0.536, allocations: 39.98 kB / 0.5327 GB, free: 5.449 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003013/0.539, allocations: 1.439 MB / 0.5342 GB, free: 3.992 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.539, allocations: 0 / 0.5342 GB, free: 3.992 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002703/0.5417, allocations: 0.5742 MB / 0.5347 GB, free: 3.418 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.0003971/0.5421, allocations: 169.2 kB / 0.5349 GB, free: 3.242 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00357/0.5457, allocations: 2.161 MB / 0.537 GB, free: 1.035 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.5457, allocations: 4 kB / 0.537 GB, free: 1.031 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2056/0.7513, allocations: 1.407 MB / 0.5384 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002931/0.7543, allocations: 0.5648 MB / 0.5389 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008999/0.7633, allocations: 6.096 MB / 0.5449 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001537/0.7649, allocations: 2.415 MB / 0.5472 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001444/0.7663, allocations: 492.8 kB / 0.5477 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/0.7667, allocations: 154.2 kB / 0.5478 GB, free: 121.7 MB / 462.1 MB Notification: Performance of SimCode: time 7.22e-07/0.7667, allocations: 4 kB / 0.5478 GB, free: 121.7 MB / 462.1 MB Notification: Performance of Templates: time 0.03876/0.8055, allocations: 27.7 MB / 0.5749 GB, free: 98.38 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches