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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 176.2 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.3 MB / 241.4 MB, free: 9.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007667/0.0007666, allocations: 90.73 kB / 292.6 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002979/0.0002979, allocations: 11.94 kB / 352.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2148, allocations: 50.41 MB / 402.8 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2757/0.4906, allocations: 120.1 MB / 0.5106 GB, free: 101.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.4909, allocations: 103.5 kB / 0.5107 GB, free: 101.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1679/0.6588, allocations: 80.64 MB / 0.5894 GB, free: 24.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.6589, allocations: 3.938 kB / 0.5894 GB, free: 24.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003489/0.6593, allocations: 95.88 kB / 0.5895 GB, free: 24.64 MB / 378.7 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.01014/0.6694, allocations: 3.819 MB / 0.5932 GB, free: 20.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.6695, allocations: 8.031 kB / 0.5932 GB, free: 20.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003243/0.6727, allocations: 0.6402 MB / 0.5939 GB, free: 20.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006251/0.679, allocations: 2.805 MB / 0.5966 GB, free: 17.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.6792, allocations: 267.3 kB / 0.5969 GB, free: 16.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009139/0.6801, allocations: 340.3 kB / 0.5972 GB, free: 16.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00863/0.6888, allocations: 4.422 MB / 0.6015 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001222/0.6889, allocations: 7.844 kB / 0.6015 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005755/0.6895, allocations: 152 kB / 0.6017 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/0.6897, allocations: 158.8 kB / 0.6018 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006227/0.6959, allocations: 3.529 MB / 0.6053 GB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02179/0.7177, allocations: 14.59 MB / 0.6195 GB, free: 9.219 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005239/0.723, allocations: 5.386 MB / 0.6248 GB, free: 3.125 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002041/0.7251, allocations: 1.279 MB / 0.626 GB, free: 1.852 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006968/0.7321, allocations: 3.897 MB / 0.6298 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/0.7321, allocations: 51.88 kB / 0.6299 GB, free: 13.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 3.206e-06/0.7321, allocations: 0 / 0.6299 GB, free: 13.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.009978/0.7421, allocations: 5.557 MB / 0.6353 GB, free: 8.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.7422, allocations: 64.72 kB / 0.6354 GB, free: 7.996 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003741/0.7459, allocations: 2.087 MB / 0.6374 GB, free: 5.875 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.7461, allocations: 53.64 kB / 0.6374 GB, free: 5.816 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001176/0.7473, allocations: 1.661 MB / 0.6391 GB, free: 4.137 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003831/0.7477, allocations: 469.3 kB / 0.6395 GB, free: 3.672 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.605e-05/0.7478, allocations: 36 kB / 0.6395 GB, free: 3.637 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.7479, allocations: 373.9 kB / 0.6399 GB, free: 3.266 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.7491, allocations: 0.7262 MB / 0.6406 GB, free: 2.539 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.7508, allocations: 1.342 MB / 0.6419 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003047/0.7538, allocations: 2.208 MB / 0.6441 GB, free: 14.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-05/0.7539, allocations: 8 kB / 0.6441 GB, free: 14.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004442/0.7583, allocations: 2.517 MB / 0.6465 GB, free: 11.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.7584, allocations: 19.88 kB / 0.6466 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.481e-05/0.7584, allocations: 20 kB / 0.6466 GB, free: 11.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004211/0.7588, allocations: 135 kB / 0.6467 GB, free: 11.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.7605, allocations: 467.3 kB / 0.6472 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/0.7632, allocations: 3.072 MB / 0.6502 GB, free: 7.898 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.765, allocations: 115.7 kB / 0.6503 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/0.7653, allocations: 84.11 kB / 0.6504 GB, free: 7.703 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002286/0.7676, allocations: 1.048 MB / 0.6514 GB, free: 6.645 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005877/0.7682, allocations: 213.3 kB / 0.6516 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.7723, allocations: 2.224 MB / 0.6537 GB, free: 4.152 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.7724, allocations: 12 kB / 0.6538 GB, free: 4.141 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.7724, allocations: 4 kB / 0.6538 GB, free: 4.137 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.7724, allocations: 3.984 kB / 0.6538 GB, free: 4.133 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1989/0.9713, allocations: 5.219 MB / 0.6589 GB, free: 78.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.9713, allocations: 1.906 kB / 0.6589 GB, free: 78.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.9724, allocations: 231.9 kB / 0.6591 GB, free: 78.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007117/0.9732, allocations: 272.5 kB / 0.6593 GB, free: 78.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.409e-05/0.9733, allocations: 36.08 kB / 0.6594 GB, free: 78.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005253/0.9785, allocations: 7.134 MB / 0.6663 GB, free: 73.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.9785, allocations: 7.875 kB / 0.6664 GB, free: 73.13 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004456/0.983, allocations: 3.217 MB / 0.6695 GB, free: 72.65 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009772/0.984, allocations: 471.9 kB / 0.6699 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004777/0.9845, allocations: 27.12 kB / 0.67 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.9855, allocations: 84.55 kB / 0.6701 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.9857, allocations: 93.08 kB / 0.6701 GB, free: 72.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.031e-05/0.9858, allocations: 34.03 kB / 0.6702 GB, free: 72.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001799/0.9876, allocations: 1.415 MB / 0.6716 GB, free: 72.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.9876, allocations: 5.781 kB / 0.6716 GB, free: 72.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001845/0.9894, allocations: 0.6089 MB / 0.6722 GB, free: 72.41 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005275/0.99, allocations: 473.3 kB / 0.6726 GB, free: 72.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002589/0.9926, allocations: 2.1 MB / 0.6747 GB, free: 71.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.9926, allocations: 2.5 kB / 0.6747 GB, free: 71.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.9942, allocations: 1.389 MB / 0.676 GB, free: 71.51 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002865/0.997, allocations: 0.5274 MB / 0.6765 GB, free: 71.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/1.008, allocations: 7.34 MB / 0.6837 GB, free: 68.33 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003088/1.011, allocations: 2.417 MB / 0.6861 GB, free: 67.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00228/1.013, allocations: 0.4927 MB / 0.6865 GB, free: 67.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006702/1.014, allocations: 155.2 kB / 0.6867 GB, free: 67.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/1.014, allocations: 0 / 0.6867 GB, free: 67.48 MB / 426.7 MB Notification: Performance of Templates: time 0.05085/1.065, allocations: 30.7 MB / 0.7167 GB, free: 65.85 MB / 426.7 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","../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