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.001124/0.001124, allocations: 105.7 kB / 17.06 MB, free: 6.016 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.001269/0.00127, allocations: 191 kB / 18 MB, free: 5.102 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.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2921, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01197/0.3041, allocations: 10.92 MB / 411.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006627/0.3107, allocations: 3.606 MB / 415.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.312, allocations: 67.69 kB / 415.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.3139, allocations: 0.8187 MB / 416.1 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002341/0.3163, allocations: 0.8658 MB / 417 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009147/0.3172, allocations: 455.3 kB / 417.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003075/0.3203, allocations: 2.935 MB / 420.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003084/0.3234, allocations: 2.739 MB / 423.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001943/0.3253, allocations: 1.374 MB / 424.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002649/0.328, allocations: 1.752 MB / 426.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006173/0.3286, allocations: 372 kB / 426.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009318/0.3296, allocations: 471.8 kB / 427.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001001/0.3306, allocations: 1.071 MB / 428.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001839/0.3324, allocations: 1.672 MB / 429.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005153/0.3376, allocations: 4.9 MB / 434.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3376, allocations: 0 / 434.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3376, allocations: 0 / 434.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001046/0.3377, allocations: 0 / 434.7 MB, free: 6.699 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.006763/0.3445, allocations: 3.473 MB / 438.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3446, allocations: 8.031 kB / 438.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008189/0.3454, allocations: 358.8 kB / 438.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00298/0.3484, allocations: 1.832 MB / 440.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.3485, allocations: 193.4 kB / 440.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003444/0.3489, allocations: 255.9 kB / 440.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005077/0.354, allocations: 3.279 MB / 444.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.744e-05/0.3541, allocations: 11.98 kB / 444.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002298/0.3543, allocations: 100 kB / 444.2 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/0.3544, allocations: 120.9 kB / 444.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00467/0.3591, allocations: 2.752 MB / 447.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01623/0.3754, allocations: 10.41 MB / 457.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002066/0.3775, allocations: 1.366 MB / 458.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.3787, allocations: 0.7617 MB / 459.6 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002963/0.379, allocations: 204.2 kB / 459.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/0.3791, allocations: 43.56 kB / 459.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.594e-06/0.3791, allocations: 0 / 459.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01467/0.3938, allocations: 6.942 MB / 466.8 MB, free: 5.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.3938, allocations: 68.41 kB / 466.9 MB, free: 5.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002478/0.3963, allocations: 1.793 MB / 468.7 MB, free: 3.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.431e-05/0.3964, allocations: 45.7 kB / 468.7 MB, free: 3.883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008956/0.3973, allocations: 1.302 MB / 470 MB, free: 2.566 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003343/0.3977, allocations: 448.2 kB / 470.4 MB, free: 2.125 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004466/0.3981, allocations: 299.4 kB / 470.7 MB, free: 1.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.3982, allocations: 305.1 kB / 471 MB, free: 1.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.3994, allocations: 0.7769 MB / 471.8 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001435/0.4008, allocations: 1.3 MB / 473.1 MB, free: 15.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002696/0.4035, allocations: 2.21 MB / 475.3 MB, free: 12.78 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-06/0.4035, allocations: 4 kB / 475.3 MB, free: 12.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003815/0.4073, allocations: 2.491 MB / 477.8 MB, free: 10.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.4074, allocations: 12 kB / 477.8 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.4074, allocations: 16 kB / 477.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006231/0.408, allocations: 235.2 kB / 478.1 MB, free: 9.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/0.4095, allocations: 419.5 kB / 478.5 MB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002579/0.4121, allocations: 3.238 MB / 481.7 MB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001314/0.4134, allocations: 127.8 kB / 481.8 MB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.4136, allocations: 71.98 kB / 481.9 MB, free: 5.863 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.001338/0.4149, allocations: 0.8173 MB / 482.7 MB, free: 5.035 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003298/0.4152, allocations: 194.7 kB / 482.9 MB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003265/0.4185, allocations: 2.043 MB / 485 MB, free: 2.781 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.4185, allocations: 12 kB / 485 MB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4185, allocations: 7.938 kB / 485 MB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.4186, allocations: 3.984 kB / 485 MB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007147/0.4257, allocations: 4.753 MB / 489.7 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.4258, allocations: 4.062 kB / 489.8 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.4268, allocations: 263.6 kB / 490 MB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005515/0.4274, allocations: 199.3 kB / 490.2 MB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-05/0.4275, allocations: 27.98 kB / 490.2 MB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002552/0.43, allocations: 3.218 MB / 493.4 MB, free: 9.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.4301, allocations: 3.938 kB / 493.5 MB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00455/0.4346, allocations: 3.152 MB / 496.6 MB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008837/0.4355, allocations: 435.7 kB / 497 MB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002185/0.4357, allocations: 27.98 kB / 497.1 MB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009361/0.4367, allocations: 95.81 kB / 497.2 MB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/0.4369, allocations: 76.89 kB / 497.2 MB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.528e-05/0.4369, allocations: 35.98 kB / 497.3 MB, free: 6.023 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001761/0.4387, allocations: 1.224 MB / 498.5 MB, free: 4.809 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4387, allocations: 0 / 498.5 MB, free: 4.809 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001487/0.4402, allocations: 488 kB / 499 MB, free: 4.332 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.0003756/0.4406, allocations: 190.9 kB / 499.1 MB, free: 4.133 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003376/0.444, allocations: 2.353 MB / 0.4897 GB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.444, allocations: 0 / 0.4897 GB, free: 1.715 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001753/0.4458, allocations: 1.336 MB / 0.4911 GB, free: 316 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.448, allocations: 0.4931 MB / 0.4915 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007836/0.4558, allocations: 4.945 MB / 0.4964 GB, free: 10.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/0.4575, allocations: 2.002 MB / 0.4983 GB, free: 8.777 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001392/0.4589, allocations: 0.5038 MB / 0.4988 GB, free: 8.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004336/0.4594, allocations: 139.4 kB / 0.4989 GB, free: 8.133 MB / 430.1 MB Notification: Performance of SimCode: time 2.545e-06/0.4594, allocations: 0 / 0.4989 GB, free: 8.133 MB / 430.1 MB Notification: Performance of Templates: time 0.04705/0.5064, allocations: 26.22 MB / 0.5245 GB, free: 14.16 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/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