Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008615/0.0008615, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001379/0.00224, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007905/0.0007905, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001107/0.001897, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.059/1.059, allocations: 177.2 MB / 189.8 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09293/1.152, allocations: 53.67 MB / 243.4 MB, free: 15.48 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 244.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.942e-05/3.051e-05, allocations: 5.828 kB / 244.7 MB, free: 14.19 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.00948/0.00951, allocations: 10.65 MB / 255.4 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00695/0.01646, allocations: 3.749 MB / 259.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001757/0.01822, allocations: 91.27 kB / 259.2 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.01988, allocations: 0.8227 MB / 260 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002622/0.0225, allocations: 0.9584 MB / 261 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.02367, allocations: 463.2 kB / 261.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003343/0.02701, allocations: 3.058 MB / 264.5 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002029/0.02904, allocations: 1.556 MB / 266.1 MB, free: 8.672 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003823/0.03286, allocations: 2.672 MB / 268.7 MB, free: 5.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002043/0.0349, allocations: 1.5 MB / 270.2 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007958/0.0357, allocations: 360 kB / 270.6 MB, free: 4.125 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.03672, allocations: 455.8 kB / 271 MB, free: 3.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007081/0.03743, allocations: 0.8805 MB / 271.9 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001307/0.03873, allocations: 0.9124 MB / 272.8 MB, free: 1.883 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1289/0.1676, allocations: 2.459 MB / 275.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.567e-05/0.1676, allocations: 3.188 kB / 275.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1676, allocations: 0 / 275.3 MB, free: 8.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000137/0.1678, allocations: 1.312 kB / 275.3 MB, free: 8.797 MB / 266.7 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.004247/0.172, allocations: 3.679 MB / 279 MB, free: 7.523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.1721, allocations: 14.23 kB / 279 MB, free: 7.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008502/0.1729, allocations: 0.5273 MB / 279.5 MB, free: 7.422 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/0.1745, allocations: 1.302 MB / 280.8 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.1747, allocations: 188.2 kB / 281 MB, free: 6.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002443/0.1749, allocations: 256.9 kB / 281.2 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002365/0.1773, allocations: 1.854 MB / 283.1 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.92e-05/0.1773, allocations: 4.875 kB / 283.1 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001574/0.1775, allocations: 110.5 kB / 283.2 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.1776, allocations: 122 kB / 283.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.1789, allocations: 0.7407 MB / 284.1 MB, free: 6.496 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006761/0.1856, allocations: 6.929 MB / 291 MB, free: 3.691 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005481/0.1862, allocations: 0.5167 MB / 291.5 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.1865, allocations: 263 kB / 291.8 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.1866, allocations: 57.34 kB / 291.8 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.1866, allocations: 48.59 kB / 291.9 MB, free: 3.551 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 3.296e-06/0.1866, allocations: 0 / 291.9 MB, free: 3.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.00463/0.1913, allocations: 2.986 MB / 294.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.256e-05/0.1913, allocations: 68.03 kB / 294.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007012/0.192, allocations: 1.175 MB / 296.1 MB, free: 2.691 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.192, allocations: 43.48 kB / 296.1 MB, free: 2.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003241/0.1924, allocations: 1.1 MB / 297.2 MB, free: 2.008 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.1925, allocations: 445.5 kB / 297.7 MB, free: 1.719 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/0.1928, allocations: 280.5 kB / 298 MB, free: 1.656 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.159e-05/0.1928, allocations: 305 kB / 298.3 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.193, allocations: 180.2 kB / 298.4 MB, free: 1.344 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/0.1934, allocations: 0.6786 MB / 299.1 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008359/0.1942, allocations: 1.111 MB / 300.2 MB, free: 76 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.474e-05/0.1942, allocations: 3.875 kB / 300.2 MB, free: 76 kB / 266.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001367/0.1956, allocations: 1.044 MB / 301.3 MB, free: 15.61 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.1956, allocations: 12.62 kB / 301.3 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.1956, allocations: 16 kB / 301.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002802/0.1959, allocations: 124.7 kB / 301.4 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008367/0.1967, allocations: 406.7 kB / 301.8 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.1983, allocations: 2.433 MB / 304.2 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006395/0.199, allocations: 59.98 kB / 304.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.786e-05/0.199, allocations: 60 kB / 304.4 MB, free: 12.38 MB / 282.7 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 {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004218/0.1994, allocations: 228.3 kB / 304.6 MB, free: 12.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.1996, allocations: 139.9 kB / 304.7 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.2009, allocations: 0.7701 MB / 305.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.201, allocations: 12 kB / 305.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.201, allocations: 0 / 305.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.201, allocations: 7.969 kB / 305.5 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.204, allocations: 2.122 MB / 307.6 MB, free: 9.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.204, allocations: 7.75 kB / 307.6 MB, free: 9.246 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005665/0.2045, allocations: 245.1 kB / 307.9 MB, free: 9.02 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/0.2049, allocations: 218.8 kB / 308.1 MB, free: 8.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000266/0.2052, allocations: 155.9 kB / 308.3 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-05/0.2052, allocations: 24 kB / 308.3 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.2064, allocations: 2.404 MB / 310.7 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.2064, allocations: 4 kB / 310.7 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.2075, allocations: 1.12 MB / 311.8 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.2076, allocations: 24 kB / 311.8 MB, free: 4.867 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.208, allocations: 35.98 kB / 311.9 MB, free: 4.832 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-05/0.2081, allocations: 84.2 kB / 311.9 MB, free: 4.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.2081, allocations: 24.14 kB / 312 MB, free: 4.727 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004229/0.2085, allocations: 0.5822 MB / 312.5 MB, free: 4.215 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2085, allocations: 0 / 312.5 MB, free: 4.215 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009661/0.2095, allocations: 468 kB / 313 MB, free: 3.758 MB / 282.7 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 {(1,2,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.0002852/0.2098, allocations: 182.3 kB / 313.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.2109, allocations: 1.005 MB / 314.2 MB, free: 2.641 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-05/0.2109, allocations: 41.91 kB / 314.2 MB, free: 2.598 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006446/0.2116, allocations: 0.6642 MB / 314.9 MB, free: 1.941 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002275/0.2138, allocations: 4.35 MB / 319.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/0.2282, allocations: 4.229 MB / 323.5 MB, free: 8.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.2287, allocations: 0.5767 MB / 324 MB, free: 7.859 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006231/0.2293, allocations: 251 kB / 324.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007266/0.2301, allocations: 455.1 kB / 324.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of SimCode: time 1.182e-06/0.2301, allocations: 0 / 324.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of Templates: time 0.03391/0.264, allocations: 25.58 MB / 350.3 MB, free: 14.07 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.294696608558297]