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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001045/0.001046, allocations: 200.4 kB / 18.11 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 245.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009159/0.0009159, allocations: 91.28 kB / 297.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002483/0.0002484, allocations: 8 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2135, allocations: 51.28 MB / 409.4 MB, free: 27.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2759/0.4895, allocations: 121 MB / 0.518 GB, free: 96.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.4898, allocations: 104.9 kB / 0.5181 GB, free: 96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1714/0.6612, allocations: 83.21 MB / 0.5993 GB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6613, allocations: 3.938 kB / 0.5993 GB, free: 12.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003039/0.6616, allocations: 95.88 kB / 0.5994 GB, free: 12.58 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.01001/0.6716, allocations: 3.854 MB / 0.6032 GB, free: 8.652 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.6716, allocations: 8.031 kB / 0.6032 GB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003241/0.6749, allocations: 0.6479 MB / 0.6038 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006184/0.6811, allocations: 2.817 MB / 0.6066 GB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.6813, allocations: 263.3 kB / 0.6068 GB, free: 4.863 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009707/0.6823, allocations: 348.3 kB / 0.6071 GB, free: 4.523 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009384/0.6917, allocations: 4.418 MB / 0.6115 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-05/0.6919, allocations: 7.875 kB / 0.6115 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003578/0.6922, allocations: 155.9 kB / 0.6116 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/0.6924, allocations: 158.8 kB / 0.6118 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006452/0.6989, allocations: 3.525 MB / 0.6152 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02122/0.7201, allocations: 14.75 MB / 0.6296 GB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005144/0.7253, allocations: 5.651 MB / 0.6351 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.728, allocations: 1.595 MB / 0.6367 GB, free: 4.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006983/0.735, allocations: 4.3 MB / 0.6409 GB, free: 480 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.965e-05/0.7351, allocations: 47.86 kB / 0.6409 GB, free: 424 kB / 410.7 MB Notification: Performance of pre-optimization done (n=128): time 3.086e-06/0.7351, allocations: 0 / 0.6409 GB, free: 424 kB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.009481/0.7446, allocations: 5.725 MB / 0.6465 GB, free: 10.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.7447, allocations: 64.72 kB / 0.6466 GB, free: 10.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/0.7476, allocations: 2.108 MB / 0.6487 GB, free: 8.305 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.195e-05/0.7477, allocations: 45.7 kB / 0.6487 GB, free: 8.254 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.7488, allocations: 1.673 MB / 0.6503 GB, free: 6.562 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003663/0.7492, allocations: 469.3 kB / 0.6508 GB, free: 6.098 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.065e-05/0.7493, allocations: 40 kB / 0.6508 GB, free: 6.059 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.7495, allocations: 377.8 kB / 0.6512 GB, free: 5.684 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.7507, allocations: 0.7378 MB / 0.6519 GB, free: 4.945 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.7523, allocations: 1.346 MB / 0.6532 GB, free: 3.324 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003064/0.7554, allocations: 2.243 MB / 0.6554 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.7554, allocations: 8 kB / 0.6554 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.00426/0.7596, allocations: 2.592 MB / 0.6579 GB, free: 14.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.7597, allocations: 12 kB / 0.658 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.7597, allocations: 20 kB / 0.658 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004565/0.7602, allocations: 190.9 kB / 0.6582 GB, free: 13.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.7617, allocations: 451.2 kB / 0.6586 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002907/0.7646, allocations: 3.495 MB / 0.662 GB, free: 9.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001523/0.7662, allocations: 123.7 kB / 0.6621 GB, free: 9.609 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.7663, allocations: 83.98 kB / 0.6622 GB, free: 9.527 MB / 442.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 (221): * Single equations (assignments): 218 * 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%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001918/0.7682, allocations: 1.055 MB / 0.6632 GB, free: 8.461 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003208/0.7686, allocations: 217.3 kB / 0.6634 GB, free: 8.246 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003599/0.7722, allocations: 2.287 MB / 0.6657 GB, free: 5.902 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.7722, allocations: 19.94 kB / 0.6657 GB, free: 5.883 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.7722, allocations: 4 kB / 0.6657 GB, free: 5.879 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.7722, allocations: 11.97 kB / 0.6657 GB, free: 5.867 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007915/0.7802, allocations: 5.333 MB / 0.6709 GB, free: 400 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.7802, allocations: 3.938 kB / 0.6709 GB, free: 396 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009877/0.7812, allocations: 231.6 kB / 0.6711 GB, free: 164 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1802/0.9614, allocations: 315.6 kB / 0.6714 GB, free: 86.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002435/0.9616, allocations: 30.08 kB / 0.6715 GB, free: 86.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005649/0.9673, allocations: 7.557 MB / 0.6788 GB, free: 81.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.9673, allocations: 2.062 kB / 0.6788 GB, free: 81.18 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004205/0.9715, allocations: 3.317 MB / 0.6821 GB, free: 80.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008424/0.9724, allocations: 473.5 kB / 0.6825 GB, free: 80.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002349/0.9726, allocations: 30.56 kB / 0.6826 GB, free: 80.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009744/0.9736, allocations: 82.55 kB / 0.6826 GB, free: 80.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.9738, allocations: 91.2 kB / 0.6827 GB, free: 80.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.315e-05/0.9739, allocations: 39.94 kB / 0.6828 GB, free: 80.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001939/0.9758, allocations: 1.422 MB / 0.6842 GB, free: 80.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9758, allocations: 0 / 0.6842 GB, free: 80.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002137/0.978, allocations: 0.6236 MB / 0.6848 GB, free: 80.46 MB / 442.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 (109): * Single equations (assignments): 105 * 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%) 8,(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.0006362/0.9786, allocations: 494.3 kB / 0.6852 GB, free: 80.36 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002716/0.9813, allocations: 2.147 MB / 0.6873 GB, free: 80.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.9814, allocations: 0 / 0.6873 GB, free: 80.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.983, allocations: 1.424 MB / 0.6887 GB, free: 79.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.9857, allocations: 0.5332 MB / 0.6892 GB, free: 79.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008817/0.9945, allocations: 7.364 MB / 0.6964 GB, free: 76.39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.9964, allocations: 2.429 MB / 0.6988 GB, free: 75.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001807/0.9982, allocations: 499.1 kB / 0.6993 GB, free: 75.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/0.9987, allocations: 155.4 kB / 0.6994 GB, free: 75.53 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/0.9987, allocations: 0 / 0.6994 GB, free: 75.53 MB / 442.7 MB Notification: Performance of Templates: time 0.04712/1.046, allocations: 31.3 MB / 0.73 GB, free: 73.86 MB / 442.7 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/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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches