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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 103.8 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 197.6 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 47.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2658, allocations: 49.42 MB / 401.4 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01619/0.2821, allocations: 15.18 MB / 416.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.2927, allocations: 5.089 MB / 421.7 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003207/0.2959, allocations: 95.62 kB / 421.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003584/0.2995, allocations: 1.068 MB / 422.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004688/0.3043, allocations: 1.266 MB / 424.1 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002446/0.3068, allocations: 0.8914 MB / 425 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005017/0.3118, allocations: 3.612 MB / 428.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005403/0.3172, allocations: 3.314 MB / 431.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003347/0.3206, allocations: 1.725 MB / 433.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003992/0.3246, allocations: 2.055 MB / 435.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001561/0.3262, allocations: 484 kB / 436.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.3286, allocations: 0.6833 MB / 436.9 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001303/0.33, allocations: 1.145 MB / 438 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00254/0.3325, allocations: 2.042 MB / 440.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006131/0.3387, allocations: 6.266 MB / 446.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3387, allocations: 0 / 446.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3387, allocations: 0 / 446.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001486/0.3389, allocations: 0 / 446.3 MB, free: 11.91 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.009244/0.3481, allocations: 4.242 MB / 450.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.3482, allocations: 12.03 kB / 450.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/0.3508, allocations: 0.6172 MB / 451.2 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00356/0.3543, allocations: 2.276 MB / 453.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.3545, allocations: 238.7 kB / 453.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000442/0.355, allocations: 316 kB / 454 MB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006822/0.3618, allocations: 4.043 MB / 458.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.87e-05/0.3619, allocations: 7.938 kB / 458.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002898/0.3622, allocations: 132 kB / 458.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/0.3624, allocations: 146.2 kB / 458.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005665/0.368, allocations: 3.39 MB / 461.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.3858, allocations: 13.13 MB / 474.9 MB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003978/0.3899, allocations: 3.981 MB / 478.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.3915, allocations: 0.984 MB / 479.8 MB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004147/0.3956, allocations: 2.653 MB / 482.5 MB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.3957, allocations: 47.5 kB / 482.5 MB, free: 6.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 3.075e-06/0.3957, allocations: 0 / 482.5 MB, free: 6.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.0108/0.4065, allocations: 5.991 MB / 488.5 MB, free: 384 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.4066, allocations: 72.72 kB / 488.6 MB, free: 296 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/0.4091, allocations: 1.897 MB / 490.5 MB, free: 14.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.4092, allocations: 49.7 kB / 490.5 MB, free: 14.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009077/0.4101, allocations: 1.493 MB / 492 MB, free: 12.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003462/0.4105, allocations: 496.9 kB / 492.5 MB, free: 12.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004588/0.411, allocations: 331.2 kB / 492.8 MB, free: 11.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/0.4111, allocations: 301.1 kB / 493.1 MB, free: 11.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.4122, allocations: 0.773 MB / 493.9 MB, free: 10.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/0.4137, allocations: 1.371 MB / 495.3 MB, free: 9.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002787/0.4165, allocations: 2.323 MB / 497.6 MB, free: 6.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.4165, allocations: 8 kB / 497.6 MB, free: 6.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003774/0.4203, allocations: 2.47 MB / 0.4883 GB, free: 4.164 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.4203, allocations: 12 kB / 0.4884 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.468e-05/0.4203, allocations: 20 kB / 0.4884 GB, free: 4.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003381/0.4207, allocations: 118.5 kB / 0.4885 GB, free: 4.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.4224, allocations: 491.2 kB / 0.489 GB, free: 3.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.4234, allocations: 1.41 MB / 0.4903 GB, free: 1.977 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.4249, allocations: 107.8 kB / 0.4904 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.425, allocations: 87.98 kB / 0.4905 GB, free: 1.785 MB / 414.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.00154/0.4265, allocations: 0.9852 MB / 0.4915 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003239/0.4269, allocations: 201.5 kB / 0.4917 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.43, allocations: 1.958 MB / 0.4936 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.43, allocations: 16 kB / 0.4936 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.43, allocations: 0 / 0.4936 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.43, allocations: 7.969 kB / 0.4936 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007088/0.4371, allocations: 4.987 MB / 0.4985 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.996e-06/0.4372, allocations: 8.031 kB / 0.4985 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.4385, allocations: 307.5 kB / 0.4988 GB, free: 9.184 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002832/0.4388, allocations: 90.53 kB / 0.4989 GB, free: 9.086 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.937e-05/0.4389, allocations: 31.98 kB / 0.4989 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000911/0.4398, allocations: 1.379 MB / 0.5002 GB, free: 7.535 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4398, allocations: 7.938 kB / 0.5003 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004201/0.444, allocations: 3.082 MB / 0.5033 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009089/0.4449, allocations: 454.5 kB / 0.5037 GB, free: 3.922 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002516/0.4452, allocations: 23.98 kB / 0.5037 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009666/0.4462, allocations: 87.97 kB / 0.5038 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.4464, allocations: 89.06 kB / 0.5039 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/0.4464, allocations: 44 kB / 0.5039 GB, free: 3.684 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001933/0.4484, allocations: 1.285 MB / 0.5052 GB, free: 2.375 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4484, allocations: 3.938 kB / 0.5052 GB, free: 2.371 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001721/0.4501, allocations: 0.5351 MB / 0.5057 GB, free: 1.836 MB / 430.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.0003402/0.4505, allocations: 167 kB / 0.5059 GB, free: 1.66 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003368/0.4539, allocations: 2.215 MB / 0.508 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.4539, allocations: 1 kB / 0.508 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001525/0.4554, allocations: 1.181 MB / 0.5092 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002535/0.458, allocations: 0.5087 MB / 0.5097 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009246/0.4672, allocations: 5.611 MB / 0.5152 GB, free: 7.984 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/0.4691, allocations: 2.216 MB / 0.5173 GB, free: 5.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007579/0.4699, allocations: 167.4 kB / 0.5175 GB, free: 5.566 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4699, allocations: 0 / 0.5175 GB, free: 5.566 MB / 446.1 MB Notification: Performance of Templates: time 0.3829/0.8528, allocations: 86.18 MB / 0.6017 GB, free: 74.3 MB / 462.1 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/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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches