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.001004/0.001004, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 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.001791/0.001791, allocations: 168.9 kB / 24.91 MB, free: 9.156 MB / 18.57 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.012/1.012, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.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.402e-06/1.402e-06, allocations: 0 / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.986e-05/2.126e-05, allocations: 6.312 kB / 273.5 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.009413/0.009434, allocations: 10.58 MB / 284.1 MB, free: 6.609 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006494/0.01593, allocations: 3.722 MB / 287.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001553/0.01748, allocations: 83.44 kB / 287.9 MB, free: 2.789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002246/0.01973, allocations: 0.8382 MB / 288.7 MB, free: 1.945 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002571/0.0223, allocations: 0.9507 MB / 289.7 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.02321, allocations: 475.1 kB / 290.1 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1152/0.1384, allocations: 3.032 MB / 293.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002396/0.1408, allocations: 1.549 MB / 294.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003874/0.1447, allocations: 2.483 MB / 297.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002514/0.1472, allocations: 1.497 MB / 298.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001066/0.1483, allocations: 358 kB / 299.1 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.1495, allocations: 466.4 kB / 299.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008197/0.1503, allocations: 1.059 MB / 300.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001507/0.1518, allocations: 1.102 MB / 301.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003116/0.1549, allocations: 2.627 MB / 304.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.155, allocations: 0 / 304.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.155, allocations: 0 / 304.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.97e-05/0.155, allocations: 0 / 304.3 MB, free: 12.99 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.003892/0.1589, allocations: 3.102 MB / 307.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.1589, allocations: 8.25 kB / 307.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008862/0.1598, allocations: 455.7 kB / 307.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001832/0.1617, allocations: 1.303 MB / 309.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.1618, allocations: 187.8 kB / 309.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002675/0.162, allocations: 253.9 kB / 309.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002265/0.1643, allocations: 1.861 MB / 311.5 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.697e-05/0.1644, allocations: 7.953 kB / 311.5 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001708/0.1645, allocations: 111.1 kB / 311.6 MB, free: 9.191 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/0.1646, allocations: 128.8 kB / 311.7 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.1659, allocations: 0.74 MB / 312.4 MB, free: 8.301 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007725/0.1736, allocations: 6.876 MB / 319.3 MB, free: 1.621 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006719/0.1743, allocations: 0.5374 MB / 319.8 MB, free: 1.105 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003752/0.1747, allocations: 259.4 kB / 320.1 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001902/0.1749, allocations: 59.2 kB / 320.2 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.1749, allocations: 51.36 kB / 320.2 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 4.839e-06/0.1749, allocations: 4 kB / 320.2 MB, free: 0.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.006808/0.1817, allocations: 2.949 MB / 323.2 MB, free: 13.81 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.1818, allocations: 65.16 kB / 323.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.1828, allocations: 1.177 MB / 324.4 MB, free: 12.78 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/0.1829, allocations: 45.7 kB / 324.4 MB, free: 12.73 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005361/0.1834, allocations: 1.095 MB / 325.5 MB, free: 11.7 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.1837, allocations: 450.3 kB / 326 MB, free: 11.28 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003052/0.184, allocations: 272.4 kB / 326.2 MB, free: 11.04 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003383/0.1843, allocations: 306.3 kB / 326.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.1846, allocations: 183.6 kB / 326.7 MB, free: 10.56 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005298/0.1851, allocations: 0.6829 MB / 327.4 MB, free: 9.691 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.1862, allocations: 1.045 MB / 328.5 MB, free: 8.523 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.1862, allocations: 4 kB / 328.5 MB, free: 8.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001528/0.1877, allocations: 1.043 MB / 329.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.1877, allocations: 12 kB / 329.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/0.1878, allocations: 16 kB / 329.5 MB, free: 7.539 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002989/0.1881, allocations: 126.2 kB / 329.6 MB, free: 7.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009211/0.189, allocations: 380.4 kB / 330 MB, free: 7.055 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.1905, allocations: 2.429 MB / 332.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000782/0.1912, allocations: 59.89 kB / 332.5 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.631e-05/0.1913, allocations: 56 kB / 332.6 MB, free: 4.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.0006883/0.192, allocations: 222.3 kB / 332.8 MB, free: 4.164 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.1922, allocations: 143.8 kB / 332.9 MB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.1936, allocations: 0.7685 MB / 333.7 MB, free: 3.246 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.1937, allocations: 16 kB / 333.7 MB, free: 3.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1937, allocations: 4 kB / 333.7 MB, free: 3.227 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.1937, allocations: 7.969 kB / 333.7 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003484/0.1972, allocations: 2.127 MB / 335.8 MB, free: 1.234 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1972, allocations: 0 / 335.8 MB, free: 1.234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006301/0.1978, allocations: 225.9 kB / 336.1 MB, free: 1.027 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003155/0.1981, allocations: 148.8 kB / 336.2 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.1982, allocations: 27.98 kB / 336.2 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.1995, allocations: 2.412 MB / 338.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1995, allocations: 0 / 338.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.2009, allocations: 1.105 MB / 339.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004365/0.2014, allocations: 226.7 kB / 340 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.2015, allocations: 24 kB / 340 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.2019, allocations: 36.05 kB / 340 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.202, allocations: 92.39 kB / 340.1 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.743e-05/0.2021, allocations: 24 kB / 340.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005982/0.2027, allocations: 0.5758 MB / 340.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2027, allocations: 0 / 340.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001628/0.2043, allocations: 467.9 kB / 341.2 MB, free: 11.77 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.000312/0.2046, allocations: 188.7 kB / 341.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.2059, allocations: 0.9763 MB / 342.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.521e-05/0.206, allocations: 25.81 kB / 342.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006021/0.2066, allocations: 0.5911 MB / 343 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/0.2077, allocations: 453.7 kB / 343.4 MB, free: 9.633 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00581/0.2135, allocations: 4.089 MB / 347.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005264/0.2141, allocations: 0.5715 MB / 348.1 MB, free: 4.902 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001039/0.2151, allocations: 254.8 kB / 348.3 MB, free: 4.652 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008307/0.2159, allocations: 447.1 kB / 348.7 MB, free: 4.207 MB / 298.7 MB Notification: Performance of SimCode: time 1.443e-06/0.2159, allocations: 0 / 348.7 MB, free: 4.207 MB / 298.7 MB Notification: Performance of Templates: time 0.04275/0.2587, allocations: 24.91 MB / 373.7 MB, free: 11.81 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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2591127706691623]