Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.282/1.282, allocations: 223.3 MB / 241.4 MB, free: 11.71 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.0007674/0.0007673, allocations: 96.56 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.000409, allocations: 15.94 kB / 352.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2569, allocations: 50.4 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1146/0.3715, allocations: 110.4 MB / 0.5011 GB, free: 1.918 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002893/0.3719, allocations: 90.86 kB / 0.5012 GB, free: 1.832 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2926/0.6645, allocations: 53.1 MB / 0.5531 GB, free: 62.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6645, allocations: 0 / 0.5531 GB, free: 62.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002827/0.6648, allocations: 75.92 kB / 0.5531 GB, free: 62.62 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007913/0.6727, allocations: 2.88 MB / 0.5559 GB, free: 59.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.6728, allocations: 8.031 kB / 0.5559 GB, free: 59.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.6742, allocations: 349.1 kB / 0.5563 GB, free: 59.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004469/0.6787, allocations: 1.99 MB / 0.5582 GB, free: 57.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002173/0.679, allocations: 193.3 kB / 0.5584 GB, free: 57.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009824/0.6799, allocations: 248.3 kB / 0.5586 GB, free: 56.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006972/0.6869, allocations: 3.264 MB / 0.5618 GB, free: 53.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001125/0.6871, allocations: 12.03 kB / 0.5618 GB, free: 53.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004086/0.6875, allocations: 107.9 kB / 0.5619 GB, free: 53.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.6876, allocations: 120.9 kB / 0.5621 GB, free: 53.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004939/0.6926, allocations: 2.588 MB / 0.5646 GB, free: 50.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01629/0.7089, allocations: 10.48 MB / 0.5748 GB, free: 39.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.7107, allocations: 1.443 MB / 0.5762 GB, free: 38.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001022/0.7118, allocations: 0.7768 MB / 0.577 GB, free: 37.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003075/0.7121, allocations: 215.1 kB / 0.5772 GB, free: 37.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.7122, allocations: 43.56 kB / 0.5772 GB, free: 37.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.006e-06/0.7122, allocations: 4 kB / 0.5772 GB, free: 37.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01369/0.7259, allocations: 7.037 MB / 0.5841 GB, free: 30.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.7259, allocations: 68.72 kB / 0.5842 GB, free: 29.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003268/0.7292, allocations: 1.75 MB / 0.5859 GB, free: 28.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.838e-05/0.7293, allocations: 49.7 kB / 0.5859 GB, free: 28.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007975/0.7301, allocations: 1.26 MB / 0.5872 GB, free: 26.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003559/0.7305, allocations: 461.4 kB / 0.5876 GB, free: 26.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.793e-05/0.7306, allocations: 32 kB / 0.5876 GB, free: 26.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.7308, allocations: 369.9 kB / 0.588 GB, free: 26.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.7319, allocations: 0.8003 MB / 0.5888 GB, free: 25.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.7333, allocations: 1.314 MB / 0.5901 GB, free: 23.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/0.7359, allocations: 2.273 MB / 0.5923 GB, free: 21.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.932e-05/0.7359, allocations: 8 kB / 0.5923 GB, free: 21.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003711/0.7396, allocations: 2.533 MB / 0.5948 GB, free: 18.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.7397, allocations: 15.94 kB / 0.5948 GB, free: 18.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.834e-05/0.7397, allocations: 16 kB / 0.5948 GB, free: 18.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005762/0.7403, allocations: 247.5 kB / 0.595 GB, free: 18.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.7417, allocations: 439.3 kB / 0.5954 GB, free: 17.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001966/0.7437, allocations: 3.002 MB / 0.5984 GB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.7453, allocations: 135.7 kB / 0.5985 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/0.7454, allocations: 75.94 kB / 0.5986 GB, free: 14.42 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001665/0.7471, allocations: 0.8213 MB / 0.5994 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005226/0.7476, allocations: 189.7 kB / 0.5996 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00322/0.7509, allocations: 2.137 MB / 0.6016 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.7509, allocations: 12 kB / 0.6017 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.7509, allocations: 0 / 0.6017 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.7509, allocations: 15.91 kB / 0.6017 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007862/0.7588, allocations: 4.874 MB / 0.6064 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.7588, allocations: 0 / 0.6064 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.7599, allocations: 287.6 kB / 0.6067 GB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004663/0.7604, allocations: 211.5 kB / 0.6069 GB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.7605, allocations: 35.92 kB / 0.6069 GB, free: 5.703 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001765/0.7623, allocations: 2.967 MB / 0.6098 GB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.7623, allocations: 7.938 kB / 0.6098 GB, free: 2.465 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004334/0.7666, allocations: 3.277 MB / 0.613 GB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.7677, allocations: 450.5 kB / 0.6135 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004749/0.7682, allocations: 24 kB / 0.6135 GB, free: 14.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.7694, allocations: 99.86 kB / 0.6136 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.7696, allocations: 88.89 kB / 0.6137 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.912e-05/0.7697, allocations: 39.98 kB / 0.6137 GB, free: 14.42 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002514/0.7722, allocations: 1.188 MB / 0.6149 GB, free: 13.24 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.803e-06/0.7723, allocations: 0 / 0.6149 GB, free: 13.24 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003062/0.7753, allocations: 0.5311 MB / 0.6154 GB, free: 12.71 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001168/0.7765, allocations: 427 kB / 0.6158 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004628/0.7811, allocations: 2.406 MB / 0.6182 GB, free: 9.824 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.7812, allocations: 0 / 0.6182 GB, free: 9.824 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002037/0.7832, allocations: 1.387 MB / 0.6195 GB, free: 8.375 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003522/0.7867, allocations: 471.7 kB / 0.62 GB, free: 7.918 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/0.7983, allocations: 5.877 MB / 0.6257 GB, free: 1.973 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002711/0.8011, allocations: 2.018 MB / 0.6277 GB, free: 15.92 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001995/0.8031, allocations: 0.5198 MB / 0.6282 GB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005924/0.8037, allocations: 143.4 kB / 0.6283 GB, free: 15.25 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.8037, allocations: 0 / 0.6283 GB, free: 15.25 MB / 410.7 MB Notification: Performance of Templates: time 0.05338/0.8571, allocations: 27.55 MB / 0.6552 GB, free: 3.938 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches