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.001523/0.001523, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.392/1.392, allocations: 221.3 MB / 235.5 MB, free: 2.91 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.0008692/0.0008694, allocations: 90.23 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.853e-05/2.876e-05, allocations: 4 kB / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 50.42 MB / 394.3 MB, free: 1.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4148/0.5194, allocations: 116.7 MB / 0.499 GB, free: 2.742 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.5197, allocations: 95.78 kB / 0.4991 GB, free: 2.652 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4091/0.9288, allocations: 75.3 MB / 0.5726 GB, free: 98.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.9289, allocations: 0 / 0.5726 GB, free: 98.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002152/0.9291, allocations: 87.83 kB / 0.5727 GB, free: 98.75 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.007377/0.9365, allocations: 3.146 MB / 0.5758 GB, free: 97.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.9365, allocations: 15.69 kB / 0.5758 GB, free: 97.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002981/0.9395, allocations: 0.5911 MB / 0.5764 GB, free: 97.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007432/0.947, allocations: 3.107 MB / 0.5794 GB, free: 96.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.9471, allocations: 232.9 kB / 0.5797 GB, free: 96.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005152/0.9477, allocations: 320.1 kB / 0.58 GB, free: 96.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006705/0.9544, allocations: 3.92 MB / 0.5838 GB, free: 95.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.078e-05/0.9545, allocations: 7.719 kB / 0.5838 GB, free: 95.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002818/0.9548, allocations: 131.5 kB / 0.5839 GB, free: 95.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/0.9549, allocations: 144.9 kB / 0.5841 GB, free: 95.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004523/0.9594, allocations: 3.09 MB / 0.5871 GB, free: 94.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01648/0.9759, allocations: 13.43 MB / 0.6002 GB, free: 86.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003057/0.979, allocations: 3.925 MB / 0.604 GB, free: 83.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/0.9803, allocations: 0.9855 MB / 0.605 GB, free: 83.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00377/0.9841, allocations: 2.671 MB / 0.6076 GB, free: 81.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.96e-05/0.9841, allocations: 42.34 kB / 0.6076 GB, free: 81.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=107): time 2.795e-06/0.9841, allocations: 0 / 0.6076 GB, free: 81.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.008825/0.993, allocations: 5.172 MB / 0.6127 GB, free: 79.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.993, allocations: 66.25 kB / 0.6127 GB, free: 79.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001978/0.995, allocations: 1.645 MB / 0.6143 GB, free: 78.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.989e-05/0.9951, allocations: 49.52 kB / 0.6144 GB, free: 78.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006171/0.9957, allocations: 1.516 MB / 0.6159 GB, free: 77.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.996, allocations: 493.5 kB / 0.6163 GB, free: 76.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.042e-05/0.9961, allocations: 37.53 kB / 0.6164 GB, free: 76.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.031e-05/0.9962, allocations: 385.5 kB / 0.6168 GB, free: 76.47 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008826/0.997, allocations: 0.7315 MB / 0.6175 GB, free: 76.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.9981, allocations: 1.319 MB / 0.6188 GB, free: 75.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.9993, allocations: 0.9785 MB / 0.6197 GB, free: 74.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.9993, allocations: 3.75 kB / 0.6197 GB, free: 74.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003/1.002, allocations: 2.401 MB / 0.6221 GB, free: 73.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/1.002, allocations: 13.25 kB / 0.6221 GB, free: 73.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/1.002, allocations: 18.31 kB / 0.6221 GB, free: 73.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000348/1.003, allocations: 125 kB / 0.6222 GB, free: 73.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/1.004, allocations: 478.9 kB / 0.6227 GB, free: 73.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007029/1.005, allocations: 1.314 MB / 0.6239 GB, free: 72.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/1.006, allocations: 114.6 kB / 0.6241 GB, free: 72.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/1.007, allocations: 84.91 kB / 0.6241 GB, free: 72.25 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 (229): * Single equations (assignments): 226 * 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.0002328/1.007, allocations: 217.3 kB / 0.6243 GB, free: 72.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002228/1.007, allocations: 202.1 kB / 0.6245 GB, free: 71.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002712/1.01, allocations: 1.916 MB / 0.6264 GB, free: 70.67 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.01, allocations: 16 kB / 0.6264 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/1.01, allocations: 0 / 0.6264 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/1.01, allocations: 7.5 kB / 0.6264 GB, free: 70.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006076/1.016, allocations: 4.939 MB / 0.6313 GB, free: 66.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/1.016, allocations: 3.938 kB / 0.6313 GB, free: 66.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001218/1.017, allocations: 307.3 kB / 0.6316 GB, free: 66.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002491/1.017, allocations: 101.4 kB / 0.6316 GB, free: 66.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.63e-05/1.017, allocations: 27.47 kB / 0.6317 GB, free: 66.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005634/1.018, allocations: 1.281 MB / 0.6329 GB, free: 64.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.018, allocations: 4 kB / 0.6329 GB, free: 64.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/1.021, allocations: 3.139 MB / 0.636 GB, free: 61.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007434/1.022, allocations: 463.6 kB / 0.6364 GB, free: 61.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002216/1.022, allocations: 28 kB / 0.6365 GB, free: 61.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009025/1.023, allocations: 82.03 kB / 0.6365 GB, free: 61.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/1.023, allocations: 92.34 kB / 0.6366 GB, free: 61.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.311e-05/1.023, allocations: 36 kB / 0.6367 GB, free: 61.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001454/1.025, allocations: 1.246 MB / 0.6379 GB, free: 60 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.243e-06/1.025, allocations: 0 / 0.6379 GB, free: 60 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001585/1.027, allocations: 0.5895 MB / 0.6385 GB, free: 59.41 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 (140): * Single equations (assignments): 137 * 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.0005455/1.027, allocations: 0.5009 MB / 0.6389 GB, free: 58.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002396/1.03, allocations: 2.142 MB / 0.641 GB, free: 56.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/1.03, allocations: 6.562 kB / 0.641 GB, free: 56.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/1.031, allocations: 1.142 MB / 0.6422 GB, free: 55.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/1.032, allocations: 477.7 kB / 0.6426 GB, free: 55.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006293/1.039, allocations: 4.443 MB / 0.647 GB, free: 51.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001447/1.04, allocations: 2.328 MB / 0.6492 GB, free: 49.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001611/1.042, allocations: 0.5138 MB / 0.6497 GB, free: 49.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004275/1.042, allocations: 149.6 kB / 0.6499 GB, free: 49.04 MB / 426.7 MB Notification: Performance of SimCode: time 7.32e-07/1.042, allocations: 0 / 0.6499 GB, free: 49.04 MB / 426.7 MB Notification: Performance of Templates: time 0.0428/1.085, allocations: 28.57 MB / 0.6778 GB, free: 21.08 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