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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 147.9 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.044/1.044, allocations: 173.3 MB / 201.4 MB, free: 9.203 MB / 186.7 MB " [Timeout remaining time 179] 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=20000,variableFilter="time|smpm.is.[0-9,]+.|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=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.107e-05, allocations: 2.312 kB / 268.4 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.00936/0.009381, allocations: 10.48 MB / 278.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005939/0.01532, allocations: 3.544 MB / 282.5 MB, free: 8.082 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.01653, allocations: 83.44 kB / 282.5 MB, free: 8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.01798, allocations: 0.8033 MB / 283.3 MB, free: 7.191 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002084/0.02006, allocations: 0.9623 MB / 284.3 MB, free: 6.223 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006955/0.02076, allocations: 455.3 kB / 284.7 MB, free: 5.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002141/0.0229, allocations: 3.038 MB / 287.8 MB, free: 2.727 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001743/0.02464, allocations: 1.521 MB / 289.3 MB, free: 1.141 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1283/0.1529, allocations: 2.5 MB / 291.8 MB, free: 17.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002711/0.1556, allocations: 1.501 MB / 293.3 MB, free: 17.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001177/0.1568, allocations: 358.2 kB / 293.7 MB, free: 17.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.1579, allocations: 457.8 kB / 294.1 MB, free: 17.52 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008781/0.1588, allocations: 1.057 MB / 295.2 MB, free: 17.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001911/0.1607, allocations: 1.102 MB / 296.3 MB, free: 17.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00344/0.1642, allocations: 2.615 MB / 298.9 MB, free: 17.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1642, allocations: 0 / 298.9 MB, free: 17.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1642, allocations: 4.531 kB / 298.9 MB, free: 17.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001364/0.1643, allocations: 0.6094 kB / 298.9 MB, free: 17.29 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.005452/0.1697, allocations: 3.372 MB / 302.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1698, allocations: 10.52 kB / 302.3 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009808/0.1708, allocations: 0.5452 MB / 302.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.1729, allocations: 1.687 MB / 304.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.173, allocations: 192.8 kB / 304.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002809/0.1733, allocations: 249.6 kB / 304.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002431/0.1757, allocations: 1.827 MB / 306.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-05/0.1758, allocations: 2.875 kB / 306.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001815/0.1759, allocations: 108.5 kB / 306.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.966e-05/0.176, allocations: 122.2 kB / 307 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.1774, allocations: 0.746 MB / 307.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008773/0.1862, allocations: 8.395 MB / 316.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006896/0.1868, allocations: 0.508 MB / 316.6 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003952/0.1872, allocations: 299.8 kB / 316.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001466/0.1874, allocations: 48.97 kB / 317 MB, free: 7.449 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1874, allocations: 42.39 kB / 317 MB, free: 7.398 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 4.609e-06/0.1874, allocations: 4 kB / 317 MB, free: 7.395 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.005164/0.1926, allocations: 2.841 MB / 319.9 MB, free: 4.574 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.24e-05/0.1926, allocations: 68.41 kB / 319.9 MB, free: 4.496 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.1938, allocations: 1.388 MB / 321.3 MB, free: 3.312 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.205e-05/0.1938, allocations: 45.7 kB / 321.4 MB, free: 3.262 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005706/0.1944, allocations: 1.423 MB / 322.8 MB, free: 1.902 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000217/0.1946, allocations: 454.5 kB / 323.2 MB, free: 1.484 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003243/0.1949, allocations: 304.3 kB / 323.5 MB, free: 1.207 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.529e-05/0.195, allocations: 476.8 kB / 324 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002766/0.1952, allocations: 191.8 kB / 324.2 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006217/0.1958, allocations: 0.9217 MB / 325.1 MB, free: 15.36 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.1971, allocations: 1.266 MB / 326.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.1971, allocations: 8 kB / 326.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001904/0.199, allocations: 1.292 MB / 327.7 MB, free: 12.68 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.199, allocations: 12 kB / 327.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.1991, allocations: 16 kB / 327.7 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003107/0.1994, allocations: 129.3 kB / 327.8 MB, free: 12.51 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009458/0.2003, allocations: 358.1 kB / 328.2 MB, free: 12.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.2022, allocations: 3.504 MB / 331.7 MB, free: 8.492 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008339/0.203, allocations: 67.89 kB / 331.7 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.13e-05/0.2031, allocations: 63.69 kB / 331.8 MB, free: 8.367 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.0007284/0.2039, allocations: 258.5 kB / 332 MB, free: 8.125 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002899/0.2041, allocations: 226.8 kB / 332.3 MB, free: 7.902 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.2055, allocations: 0.9116 MB / 333.2 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.2055, allocations: 16 kB / 333.2 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2055, allocations: 4 kB / 333.2 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.2056, allocations: 7.969 kB / 333.2 MB, free: 6.945 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003863/0.2094, allocations: 2.472 MB / 335.7 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2094, allocations: 0 / 335.7 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006612/0.2101, allocations: 211 kB / 335.9 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002531/0.2103, allocations: 102.4 kB / 336 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.73e-05/0.2104, allocations: 24.25 kB / 336 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/0.212, allocations: 3.482 MB / 339.5 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.212, allocations: 8.594 kB / 339.5 MB, free: 0.582 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.2137, allocations: 1.331 MB / 340.8 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000464/0.2142, allocations: 273.7 kB / 341.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.2143, allocations: 24 kB / 341.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004791/0.2148, allocations: 41.05 kB / 341.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.2149, allocations: 86.64 kB / 341.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-05/0.215, allocations: 24 kB / 341.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007546/0.2157, allocations: 0.7396 MB / 342 MB, free: 14.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2157, allocations: 0 / 342 MB, free: 14.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00139/0.2171, allocations: 471.9 kB / 342.5 MB, free: 13.64 MB / 298.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.0003143/0.2174, allocations: 194.5 kB / 342.7 MB, free: 13.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.219, allocations: 1.177 MB / 343.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.219, allocations: 3.984 kB / 343.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007803/0.2198, allocations: 0.7442 MB / 344.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.2212, allocations: 444.5 kB / 345 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004664/0.2259, allocations: 4.123 MB / 349.1 MB, free: 6.949 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.2264, allocations: 0.6495 MB / 349.8 MB, free: 6.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006483/0.227, allocations: 247.1 kB / 350 MB, free: 6.027 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007439/0.2278, allocations: 0.494 MB / 350.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of SimCode: time 1.723e-06/0.2278, allocations: 0 / 350.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of Templates: time 0.03712/0.2649, allocations: 24.72 MB / 375.3 MB, free: 13.3 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4485784489661455]