Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001682/0.00169, allocations: 109.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002149/0.002149, allocations: 210.8 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.775/1.775, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 60.09 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.404, allocations: 50.55 MB / 410 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0194/0.4234, allocations: 15.8 MB / 425.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01259/0.4361, allocations: 5.349 MB / 431.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00584/0.4419, allocations: 99.62 kB / 431.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005966/0.448, allocations: 1.075 MB / 432.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007949/0.456, allocations: 1.235 MB / 433.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004244/0.4603, allocations: 0.9312 MB / 434.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009827/0.4701, allocations: 3.638 MB / 438.1 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009303/0.4795, allocations: 3.318 MB / 441.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006524/0.4861, allocations: 1.744 MB / 443.1 MB, free: 240 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006022/0.4922, allocations: 2.125 MB / 445.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002295/0.4945, allocations: 480 kB / 445.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00383/0.4984, allocations: 0.6949 MB / 446.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002514/0.5009, allocations: 1.149 MB / 447.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004251/0.5052, allocations: 2.05 MB / 449.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009114/0.5143, allocations: 6.295 MB / 455.9 MB, free: 3.414 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.5144, allocations: 0 / 455.9 MB, free: 3.414 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.5144, allocations: 4 kB / 455.9 MB, free: 3.41 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002302/0.5146, allocations: 0 / 455.9 MB, free: 3.41 MB / 366.1 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.01363/0.5283, allocations: 4.283 MB / 460.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.5283, allocations: 8.031 kB / 460.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003649/0.532, allocations: 0.6289 MB / 460.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005432/0.5374, allocations: 2.288 MB / 463.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/0.5377, allocations: 238.7 kB / 463.4 MB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007432/0.5384, allocations: 316 kB / 463.7 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007704/0.5461, allocations: 4.047 MB / 467.7 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.923e-05/0.5462, allocations: 7.906 kB / 467.7 MB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002916/0.5465, allocations: 128 kB / 467.9 MB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.5467, allocations: 142.2 kB / 468 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006314/0.553, allocations: 3.39 MB / 471.4 MB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02411/0.5771, allocations: 13.34 MB / 484.7 MB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004954/0.5822, allocations: 4.264 MB / 489 MB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.584, allocations: 1.02 MB / 490 MB, free: 92 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006068/0.5901, allocations: 2.839 MB / 492.8 MB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.673e-05/0.5902, allocations: 51.5 kB / 492.9 MB, free: 13.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 5.019e-06/0.5902, allocations: 0 / 492.9 MB, free: 13.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01347/0.6037, allocations: 5.999 MB / 498.9 MB, free: 6.973 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.6038, allocations: 72.64 kB / 499 MB, free: 6.887 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003998/0.6078, allocations: 1.906 MB / 0.4891 GB, free: 4.938 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.608, allocations: 49.7 kB / 0.4892 GB, free: 4.883 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001217/0.6092, allocations: 1.512 MB / 0.4907 GB, free: 3.352 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005131/0.6097, allocations: 497 kB / 0.4911 GB, free: 2.859 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006172/0.6103, allocations: 335.2 kB / 0.4914 GB, free: 2.523 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.6105, allocations: 301.1 kB / 0.4917 GB, free: 2.227 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001303/0.6118, allocations: 0.7652 MB / 0.4925 GB, free: 1.461 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001756/0.6136, allocations: 1.375 MB / 0.4938 GB, free: 15.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00323/0.6168, allocations: 2.32 MB / 0.4961 GB, free: 13.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.406e-05/0.6168, allocations: 7.938 kB / 0.4961 GB, free: 13.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004816/0.6217, allocations: 2.473 MB / 0.4985 GB, free: 10.73 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.6217, allocations: 12 kB / 0.4985 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.851e-05/0.6218, allocations: 20 kB / 0.4985 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004308/0.6222, allocations: 130.8 kB / 0.4987 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/0.6241, allocations: 479.2 kB / 0.4991 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.6257, allocations: 1.41 MB / 0.5005 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/0.6276, allocations: 123.9 kB / 0.5006 GB, free: 8.422 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001855/0.6278, allocations: 80 kB / 0.5007 GB, free: 8.344 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001973/0.6298, allocations: 0.9889 MB / 0.5017 GB, free: 7.344 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006317/0.6304, allocations: 201.5 kB / 0.5019 GB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003653/0.6341, allocations: 1.962 MB / 0.5038 GB, free: 5.164 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.6341, allocations: 16 kB / 0.5038 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.6342, allocations: 0 / 0.5038 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.6342, allocations: 11.97 kB / 0.5038 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.6442, allocations: 4.995 MB / 0.5087 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.6443, allocations: 3.984 kB / 0.5087 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.6457, allocations: 303.8 kB / 0.509 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003213/0.646, allocations: 102.5 kB / 0.5091 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.6462, allocations: 32 kB / 0.5091 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.6472, allocations: 1.371 MB / 0.5104 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.6472, allocations: 4 kB / 0.5104 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004799/0.652, allocations: 3.09 MB / 0.5135 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/0.6536, allocations: 454.4 kB / 0.5139 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006391/0.6543, allocations: 28 kB / 0.5139 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.6556, allocations: 79.91 kB / 0.514 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.6558, allocations: 97.19 kB / 0.5141 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.614e-05/0.6559, allocations: 32 kB / 0.5141 GB, free: 10.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002877/0.6588, allocations: 1.301 MB / 0.5154 GB, free: 8.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6588, allocations: 0 / 0.5154 GB, free: 8.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00255/0.6614, allocations: 0.5351 MB / 0.5159 GB, free: 8.375 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004667/0.6619, allocations: 174.9 kB / 0.5161 GB, free: 8.191 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00405/0.6659, allocations: 2.223 MB / 0.5182 GB, free: 5.914 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/0.666, allocations: 0 / 0.5182 GB, free: 5.914 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/0.6678, allocations: 1.175 MB / 0.5194 GB, free: 4.688 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003551/0.6714, allocations: 0.5197 MB / 0.5199 GB, free: 4.176 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.6843, allocations: 5.618 MB / 0.5254 GB, free: 14.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00375/0.6881, allocations: 2.225 MB / 0.5276 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/0.6893, allocations: 171.3 kB / 0.5277 GB, free: 12.07 MB / 462.1 MB Notification: Performance of SimCode: time 2.084e-06/0.6893, allocations: 0 / 0.5277 GB, free: 12.07 MB / 462.1 MB Notification: Performance of Templates: time 0.3557/1.045, allocations: 87.03 MB / 0.6127 GB, free: 56.88 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches