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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001576/0.001576, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.369/1.369, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000955/0.000955, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3381, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01299/0.3512, allocations: 10.92 MB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007781/0.359, allocations: 3.613 MB / 416 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002852/0.3619, allocations: 71.75 kB / 416 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002848/0.3648, allocations: 0.8619 MB / 416.9 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003945/0.3688, allocations: 0.9048 MB / 417.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.3702, allocations: 463.3 kB / 418.2 MB, free: 8.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003751/0.374, allocations: 2.935 MB / 421.2 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003146/0.3771, allocations: 2.731 MB / 423.9 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001845/0.379, allocations: 1.386 MB / 425.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002149/0.3812, allocations: 1.748 MB / 427 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004982/0.3817, allocations: 376 kB / 427.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008203/0.3825, allocations: 471.8 kB / 427.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009967/0.3835, allocations: 1.079 MB / 428.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001996/0.3855, allocations: 1.672 MB / 430.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005317/0.3909, allocations: 4.877 MB / 435.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3909, allocations: 0 / 435.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3909, allocations: 0 / 435.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.391, allocations: 0 / 435.5 MB, free: 6.633 MB / 350.1 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.007437/0.3985, allocations: 3.394 MB / 438.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3985, allocations: 8.031 kB / 438.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008494/0.3994, allocations: 333.1 kB / 439.2 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003566/0.403, allocations: 1.834 MB / 441.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.4032, allocations: 189.4 kB / 441.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004913/0.4037, allocations: 247.9 kB / 441.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006775/0.4104, allocations: 3.283 MB / 444.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.467e-05/0.4106, allocations: 7.906 kB / 444.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002424/0.4108, allocations: 100 kB / 444.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.411, allocations: 124.9 kB / 445 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005006/0.416, allocations: 2.748 MB / 447.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01783/0.4338, allocations: 10.38 MB / 458.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002049/0.4359, allocations: 1.37 MB / 459.5 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.4372, allocations: 0.75 MB / 460.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003408/0.4376, allocations: 207.2 kB / 460.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.4376, allocations: 43.56 kB / 460.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.868e-06/0.4376, allocations: 0 / 460.5 MB, free: 12.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01618/0.4538, allocations: 6.91 MB / 467.4 MB, free: 5.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.4539, allocations: 64.41 kB / 467.5 MB, free: 5.828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00328/0.4572, allocations: 1.793 MB / 469.3 MB, free: 4.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.4573, allocations: 45.7 kB / 469.3 MB, free: 3.984 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.4584, allocations: 1.275 MB / 470.6 MB, free: 2.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004245/0.4588, allocations: 421.9 kB / 471 MB, free: 2.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000504/0.4593, allocations: 299.2 kB / 471.3 MB, free: 1.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4595, allocations: 313.1 kB / 471.6 MB, free: 1.664 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.4607, allocations: 0.7768 MB / 472.4 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.4623, allocations: 1.292 MB / 473.7 MB, free: 15.37 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.4654, allocations: 2.214 MB / 475.9 MB, free: 12.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.082e-05/0.4654, allocations: 4 kB / 475.9 MB, free: 12.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004454/0.4699, allocations: 2.47 MB / 478.3 MB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.4699, allocations: 15.98 kB / 478.4 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.55e-05/0.47, allocations: 16 kB / 478.4 MB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000673/0.4706, allocations: 235.6 kB / 478.6 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.4721, allocations: 423.3 kB / 479 MB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/0.4753, allocations: 3.23 MB / 482.2 MB, free: 6.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.477, allocations: 135.7 kB / 482.4 MB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/0.4772, allocations: 68 kB / 482.4 MB, free: 6.027 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001849/0.4791, allocations: 0.825 MB / 483.3 MB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008959/0.48, allocations: 181.8 kB / 483.4 MB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005715/0.4857, allocations: 2.039 MB / 485.5 MB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.916e-05/0.4858, allocations: 12 kB / 485.5 MB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.4858, allocations: 0 / 485.5 MB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.282e-05/0.4858, allocations: 11.97 kB / 485.5 MB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01444/0.5003, allocations: 4.741 MB / 490.3 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.5003, allocations: 4 kB / 490.3 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/0.5021, allocations: 267.6 kB / 490.5 MB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000929/0.5031, allocations: 207.5 kB / 490.7 MB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/0.5033, allocations: 24 kB / 490.7 MB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.5073, allocations: 3.21 MB / 494 MB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.5073, allocations: 7.969 kB / 494 MB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007695/0.515, allocations: 3.135 MB / 497.1 MB, free: 6.887 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/0.5164, allocations: 426.7 kB / 497.5 MB, free: 6.449 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006085/0.517, allocations: 20 kB / 497.5 MB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/0.5186, allocations: 99.75 kB / 497.6 MB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/0.5188, allocations: 84.94 kB / 497.7 MB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.575e-05/0.5189, allocations: 32 kB / 497.7 MB, free: 6.219 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002766/0.5217, allocations: 1.228 MB / 499 MB, free: 5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5217, allocations: 0 / 499 MB, free: 5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002341/0.524, allocations: 487.9 kB / 499.4 MB, free: 4.523 MB / 414.1 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0005025/0.5245, allocations: 195 kB / 499.6 MB, free: 4.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004012/0.5286, allocations: 2.35 MB / 0.4902 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.5286, allocations: 0 / 0.4902 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.5305, allocations: 1.343 MB / 0.4915 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/0.5331, allocations: 0.4906 MB / 0.492 GB, free: 12 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.5434, allocations: 4.916 MB / 0.4968 GB, free: 11.03 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002405/0.5458, allocations: 1.974 MB / 0.4987 GB, free: 9.027 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008857/0.5468, allocations: 151.4 kB / 0.4989 GB, free: 8.879 MB / 430.1 MB Notification: Performance of SimCode: time 1.833e-06/0.5468, allocations: 0 / 0.4989 GB, free: 8.879 MB / 430.1 MB Notification: Performance of Templates: time 0.3702/0.917, allocations: 82.86 MB / 0.5798 GB, free: 100.7 MB / 462.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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