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_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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001338, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009688/0.0009687, allocations: 90.06 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.567e-05/1.572e-05, allocations: 4 kB / 337.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08948/0.08952, allocations: 50.41 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3408/0.4303, allocations: 116.1 MB / 0.4917 GB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.4307, allocations: 95.94 kB / 0.4918 GB, free: 10.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4215/0.8522, allocations: 74.31 MB / 0.5644 GB, free: 97.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.8522, allocations: 0 / 0.5644 GB, free: 97.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002826/0.8525, allocations: 84.58 kB / 0.5645 GB, free: 97.14 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01027/0.8628, allocations: 3.147 MB / 0.5676 GB, free: 95.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.8629, allocations: 9.375 kB / 0.5676 GB, free: 95.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003913/0.8668, allocations: 0.588 MB / 0.5681 GB, free: 95.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009218/0.8761, allocations: 3.118 MB / 0.5712 GB, free: 95.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.8763, allocations: 104.3 kB / 0.5713 GB, free: 95.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009119/0.8772, allocations: 186.8 kB / 0.5715 GB, free: 95.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006208/0.8834, allocations: 2.872 MB / 0.5743 GB, free: 95.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006057/0.8895, allocations: 3.459 MB / 0.5776 GB, free: 94.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.401e-05/0.8896, allocations: 5.406 kB / 0.5776 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000246/0.8899, allocations: 3.969 kB / 0.5777 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.89, allocations: 148.2 kB / 0.5778 GB, free: 94.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01916/0.9092, allocations: 12.82 MB / 0.5903 GB, free: 89.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003298/0.9125, allocations: 3.895 MB / 0.5941 GB, free: 86.19 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.9138, allocations: 0.948 MB / 0.595 GB, free: 85.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004174/0.918, allocations: 2.618 MB / 0.5976 GB, free: 84.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.9181, allocations: 47.44 kB / 0.5976 GB, free: 84.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=111): time 4.759e-06/0.9181, allocations: 0 / 0.5976 GB, free: 84.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=147): time 0.01029/0.9284, allocations: 5.319 MB / 0.6028 GB, free: 82.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.9285, allocations: 79.23 kB / 0.6029 GB, free: 81.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.9304, allocations: 1.367 MB / 0.6042 GB, free: 81.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.314e-05/0.9305, allocations: 25.7 kB / 0.6043 GB, free: 81.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007462/0.9313, allocations: 1.514 MB / 0.6057 GB, free: 80.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000326/0.9316, allocations: 490 kB / 0.6062 GB, free: 79.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.884e-05/0.9317, allocations: 4 kB / 0.6062 GB, free: 79.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.9318, allocations: 373.5 kB / 0.6066 GB, free: 79.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008546/0.9326, allocations: 0.7178 MB / 0.6073 GB, free: 79.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.9338, allocations: 1.293 MB / 0.6085 GB, free: 78.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.9352, allocations: 1.046 MB / 0.6096 GB, free: 77.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.9353, allocations: 7.312 kB / 0.6096 GB, free: 77.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.003287/0.9385, allocations: 2.311 MB / 0.6118 GB, free: 76.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.9386, allocations: 16.56 kB / 0.6118 GB, free: 76.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-05/0.9386, allocations: 19.12 kB / 0.6119 GB, free: 76.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003324/0.939, allocations: 119.6 kB / 0.612 GB, free: 76.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001628/0.9406, allocations: 487.1 kB / 0.6124 GB, free: 76.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007303/0.9414, allocations: 1.257 MB / 0.6137 GB, free: 75.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/0.9429, allocations: 81.91 kB / 0.6137 GB, free: 75.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.9431, allocations: 82.64 kB / 0.6138 GB, free: 75.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 232 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002618/0.9433, allocations: 168.1 kB / 0.614 GB, free: 75.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.9436, allocations: 192.1 kB / 0.6142 GB, free: 75.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003118/0.9467, allocations: 1.907 MB / 0.616 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.9467, allocations: 18.22 kB / 0.616 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.9468, allocations: 0 / 0.616 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.9468, allocations: 3.844 kB / 0.616 GB, free: 74.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006963/0.9537, allocations: 4.592 MB / 0.6205 GB, free: 72.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.9538, allocations: 3.906 kB / 0.6205 GB, free: 72.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.9551, allocations: 322 kB / 0.6208 GB, free: 72.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002694/0.9554, allocations: 96.81 kB / 0.6209 GB, free: 72.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.526e-05/0.9555, allocations: 11.89 kB / 0.6209 GB, free: 72.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006061/0.9561, allocations: 1.23 MB / 0.6221 GB, free: 71.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.9561, allocations: 6.516 kB / 0.6222 GB, free: 71.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003732/0.9598, allocations: 3.179 MB / 0.6253 GB, free: 69.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009016/0.9607, allocations: 448.4 kB / 0.6257 GB, free: 69.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.961, allocations: 3.688 kB / 0.6257 GB, free: 69.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009163/0.9619, allocations: 66.67 kB / 0.6258 GB, free: 69.17 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.9621, allocations: 94.58 kB / 0.6258 GB, free: 69.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.866e-05/0.9621, allocations: 44.64 kB / 0.6259 GB, free: 69.14 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001512/0.9637, allocations: 1.017 MB / 0.6269 GB, free: 68.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9637, allocations: 3 kB / 0.6269 GB, free: 68.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002105/0.9658, allocations: 0.4982 MB / 0.6274 GB, free: 68.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007292/0.9665, allocations: 429.3 kB / 0.6278 GB, free: 68.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.9693, allocations: 2.098 MB / 0.6298 GB, free: 67.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.9693, allocations: 0 / 0.6298 GB, free: 67.36 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.9705, allocations: 1.144 MB / 0.6309 GB, free: 66.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002287/0.9728, allocations: 394 kB / 0.6313 GB, free: 65.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007907/0.9807, allocations: 4.369 MB / 0.6356 GB, free: 61.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001601/0.9824, allocations: 2.319 MB / 0.6379 GB, free: 60.13 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001879/0.9842, allocations: 0.5142 MB / 0.6384 GB, free: 59.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/0.9846, allocations: 149.8 kB / 0.6385 GB, free: 59.64 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9847, allocations: 0 / 0.6385 GB, free: 59.64 MB / 426.7 MB Notification: Performance of Templates: time 0.03684/1.022, allocations: 21.96 MB / 0.6599 GB, free: 42.59 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches