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.001634/0.001634, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009161/0.0009161, allocations: 90.28 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.081e-05/3.084e-05, allocations: 4 kB / 350.6 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.0942, allocations: 51.49 MB / 402 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3667/0.461, allocations: 120.8 MB / 0.5106 GB, free: 1.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.4613, allocations: 95.39 kB / 0.5107 GB, free: 1.293 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4701/0.9314, allocations: 83.38 MB / 0.5921 GB, free: 77.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.9315, allocations: 4 kB / 0.5921 GB, free: 77.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002826/0.9318, allocations: 95.3 kB / 0.5922 GB, free: 77.74 MB / 442.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.01044/0.9422, allocations: 3.472 MB / 0.5956 GB, free: 76.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.9423, allocations: 13.84 kB / 0.5956 GB, free: 76.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005198/0.9475, allocations: 0.6456 MB / 0.5963 GB, free: 76.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009798/0.9573, allocations: 3.4 MB / 0.5996 GB, free: 75.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002713/0.9577, allocations: 260.8 kB / 0.5998 GB, free: 75.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001109/0.9588, allocations: 346.4 kB / 0.6002 GB, free: 75.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00867/0.9675, allocations: 4.328 MB / 0.6044 GB, free: 75.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.64e-05/0.9676, allocations: 5.422 kB / 0.6044 GB, free: 75.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003466/0.9679, allocations: 143.9 kB / 0.6045 GB, free: 75.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/0.9681, allocations: 164.9 kB / 0.6047 GB, free: 75.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006933/0.975, allocations: 3.433 MB / 0.608 GB, free: 75.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02445/0.9995, allocations: 14.75 MB / 0.6224 GB, free: 71.31 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004578/1.004, allocations: 5.6 MB / 0.6279 GB, free: 66.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003055/1.007, allocations: 1.579 MB / 0.6294 GB, free: 65.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007854/1.015, allocations: 4.267 MB / 0.6336 GB, free: 63.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/1.015, allocations: 52.66 kB / 0.6337 GB, free: 63.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=127): time 4.719e-06/1.015, allocations: 8.469 kB / 0.6337 GB, free: 63.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.007976/1.023, allocations: 4.374 MB / 0.6379 GB, free: 61.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/1.023, allocations: 69.84 kB / 0.638 GB, free: 61.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002936/1.026, allocations: 1.844 MB / 0.6398 GB, free: 60.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/1.026, allocations: 49.61 kB / 0.6399 GB, free: 60.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009494/1.027, allocations: 1.664 MB / 0.6415 GB, free: 59.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003502/1.028, allocations: 463.8 kB / 0.6419 GB, free: 58.74 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.563e-05/1.028, allocations: 39.81 kB / 0.642 GB, free: 58.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/1.028, allocations: 380.8 kB / 0.6423 GB, free: 58.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/1.029, allocations: 0.7045 MB / 0.643 GB, free: 58.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/1.03, allocations: 1.321 MB / 0.6443 GB, free: 57.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/1.031, allocations: 0.9406 MB / 0.6452 GB, free: 56.67 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/1.031, allocations: 4.531 kB / 0.6452 GB, free: 56.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.003909/1.035, allocations: 2.533 MB / 0.6477 GB, free: 55.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/1.035, allocations: 15.56 kB / 0.6477 GB, free: 55.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/1.035, allocations: 19.62 kB / 0.6477 GB, free: 55.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004716/1.036, allocations: 195.2 kB / 0.6479 GB, free: 55.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00157/1.037, allocations: 459.5 kB / 0.6484 GB, free: 55.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002462/1.04, allocations: 3.488 MB / 0.6518 GB, free: 52.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/1.042, allocations: 123.4 kB / 0.6519 GB, free: 52.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/1.042, allocations: 77.34 kB / 0.652 GB, free: 52.45 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 217 * 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.000288/1.042, allocations: 216.4 kB / 0.6522 GB, free: 52.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003161/1.043, allocations: 221.8 kB / 0.6524 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003331/1.046, allocations: 2.238 MB / 0.6546 GB, free: 51.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/1.046, allocations: 12.94 kB / 0.6546 GB, free: 51.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/1.046, allocations: 7.688 kB / 0.6546 GB, free: 51.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/1.046, allocations: 13.8 kB / 0.6546 GB, free: 51.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007789/1.054, allocations: 5.271 MB / 0.6597 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.054, allocations: 2.406 kB / 0.6597 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009429/1.055, allocations: 223.2 kB / 0.66 GB, free: 48.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007421/1.055, allocations: 333.3 kB / 0.6603 GB, free: 48.53 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.715e-05/1.056, allocations: 32.66 kB / 0.6603 GB, free: 48.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005227/1.061, allocations: 7.535 MB / 0.6677 GB, free: 41.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.061, allocations: 3.281 kB / 0.6677 GB, free: 41.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004286/1.065, allocations: 3.388 MB / 0.671 GB, free: 40.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/1.066, allocations: 476 kB / 0.6714 GB, free: 39.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002644/1.066, allocations: 26.12 kB / 0.6715 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009856/1.067, allocations: 84.3 kB / 0.6715 GB, free: 39.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/1.068, allocations: 92.05 kB / 0.6716 GB, free: 39.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-05/1.068, allocations: 38.77 kB / 0.6717 GB, free: 39.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001928/1.07, allocations: 1.399 MB / 0.673 GB, free: 39.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.07, allocations: 0 / 0.673 GB, free: 39.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002141/1.072, allocations: 0.6285 MB / 0.6736 GB, free: 39.11 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * 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.0006683/1.073, allocations: 0.5134 MB / 0.6741 GB, free: 38.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002859/1.075, allocations: 2.097 MB / 0.6762 GB, free: 37.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/1.075, allocations: 3.438 kB / 0.6762 GB, free: 37.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/1.077, allocations: 1.386 MB / 0.6775 GB, free: 37.08 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/1.08, allocations: 0.5158 MB / 0.678 GB, free: 36.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008803/1.089, allocations: 4.889 MB / 0.6828 GB, free: 34.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/1.091, allocations: 2.487 MB / 0.6853 GB, free: 33.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00184/1.093, allocations: 494.9 kB / 0.6857 GB, free: 33.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000452/1.093, allocations: 161.8 kB / 0.6859 GB, free: 33.69 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/1.093, allocations: 0 / 0.6859 GB, free: 33.69 MB / 442.7 MB Notification: Performance of Templates: time 0.0475/1.141, allocations: 31.54 MB / 0.7167 GB, free: 15.83 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/jenkins/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