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.0009385/0.0009385, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009135/0.0009135, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 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.002/1.002, allocations: 177.2 MB / 205 MB, free: 5.289 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.562e-06/1.562e-06, allocations: 0 / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.943e-05/2.099e-05, allocations: 5.125 kB / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01108/0.0111, allocations: 10.83 MB / 283.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005986/0.01709, allocations: 3.607 MB / 287.4 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001052/0.01814, allocations: 91.44 kB / 287.5 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.01954, allocations: 0.8187 MB / 288.3 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001828/0.02137, allocations: 0.9507 MB / 289.3 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006828/0.02205, allocations: 471.2 kB / 289.8 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.127/0.149, allocations: 3.038 MB / 292.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001927/0.1509, allocations: 1.512 MB / 294.3 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003021/0.154, allocations: 2.512 MB / 296.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002015/0.156, allocations: 1.494 MB / 298.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009207/0.1569, allocations: 358.3 kB / 298.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.1579, allocations: 462.8 kB / 299.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007618/0.1587, allocations: 1.061 MB / 300.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001397/0.1601, allocations: 1.103 MB / 301.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002632/0.1627, allocations: 2.622 MB / 303.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1627, allocations: 0 / 303.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1627, allocations: 2.469 kB / 303.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.529e-05/0.1628, allocations: 0 / 303.9 MB, free: 12.96 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.003903/0.1667, allocations: 3.465 MB / 307.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1668, allocations: 9.75 kB / 307.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00086/0.1676, allocations: 0.5638 MB / 307.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.1693, allocations: 1.764 MB / 309.7 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.671e-05/0.1694, allocations: 189.5 kB / 309.9 MB, free: 9.664 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002103/0.1696, allocations: 256.3 kB / 310.1 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/0.1718, allocations: 1.98 MB / 312.1 MB, free: 8.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.763e-05/0.1719, allocations: 4 kB / 312.1 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.172, allocations: 107.5 kB / 312.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.12e-05/0.1721, allocations: 128.9 kB / 312.4 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.1736, allocations: 0.9261 MB / 313.3 MB, free: 7.059 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00671/0.1803, allocations: 8.505 MB / 321.8 MB, free: 14.44 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008427/0.1811, allocations: 0.5802 MB / 322.4 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008156/0.1819, allocations: 341.8 kB / 322.7 MB, free: 13.53 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001621/0.1821, allocations: 56.95 kB / 322.8 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.1821, allocations: 53.61 kB / 322.8 MB, free: 13.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 2.064e-06/0.1821, allocations: 0 / 322.8 MB, free: 13.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.006012/0.1882, allocations: 3.541 MB / 326.4 MB, free: 9.859 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.1882, allocations: 64.41 kB / 326.4 MB, free: 9.785 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.1896, allocations: 1.419 MB / 327.8 MB, free: 8.348 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/0.1896, allocations: 45.7 kB / 327.9 MB, free: 8.297 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007856/0.1904, allocations: 1.405 MB / 329.3 MB, free: 6.887 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006174/0.191, allocations: 457.9 kB / 329.7 MB, free: 6.445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003037/0.1913, allocations: 297.1 kB / 330 MB, free: 6.145 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1914, allocations: 480.8 kB / 330.5 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.1918, allocations: 247.8 kB / 330.7 MB, free: 5.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007197/0.1926, allocations: 0.9724 MB / 331.7 MB, free: 4.148 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.1938, allocations: 1.358 MB / 333.1 MB, free: 2.547 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.1938, allocations: 8 kB / 333.1 MB, free: 2.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001764/0.1956, allocations: 1.422 MB / 334.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.1956, allocations: 12 kB / 334.5 MB, free: 1.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.1956, allocations: 16 kB / 334.5 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002967/0.1959, allocations: 126.9 kB / 334.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007847/0.1967, allocations: 396.4 kB / 335 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00193/0.1986, allocations: 3.558 MB / 338.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005777/0.1992, allocations: 99.83 kB / 338.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.038e-05/0.1993, allocations: 71.98 kB / 338.8 MB, free: 12.73 MB / 298.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.0004863/0.1998, allocations: 268.3 kB / 339 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.2, allocations: 222.8 kB / 339.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/0.2012, allocations: 1.005 MB / 340.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2012, allocations: 12 kB / 340.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2013, allocations: 4 kB / 340.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.2013, allocations: 15.91 kB / 340.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003571/0.2048, allocations: 3.04 MB / 343.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.2048, allocations: 0 / 343.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000546/0.2054, allocations: 234 kB / 343.5 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002242/0.2056, allocations: 106.1 kB / 343.6 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.313e-05/0.2057, allocations: 31.92 kB / 343.7 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001605/0.2073, allocations: 3.529 MB / 347.2 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.2073, allocations: 7.562 kB / 347.2 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.2089, allocations: 1.471 MB / 348.7 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003526/0.2093, allocations: 286.7 kB / 349 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.2094, allocations: 24 kB / 349 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003802/0.2097, allocations: 63.92 kB / 349.1 MB, free: 2.086 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.2099, allocations: 96.19 kB / 349.1 MB, free: 1.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.642e-05/0.2099, allocations: 35.98 kB / 349.2 MB, free: 1.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008072/0.2107, allocations: 0.8057 MB / 350 MB, free: 1.156 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2107, allocations: 0 / 350 MB, free: 1.156 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001056/0.2118, allocations: 463.9 kB / 350.4 MB, free: 0.7031 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.0002839/0.2121, allocations: 207.1 kB / 350.6 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.2139, allocations: 1.299 MB / 351.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.2139, allocations: 4 kB / 351.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000722/0.2146, allocations: 0.811 MB / 352.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.2157, allocations: 464 kB / 353.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004916/0.2207, allocations: 4.162 MB / 357.4 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004991/0.2212, allocations: 0.6418 MB / 358 MB, free: 9.043 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001019/0.2222, allocations: 386.8 kB / 358.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002623/0.2224, allocations: 128.5 kB / 358.5 MB, free: 8.535 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.2224, allocations: 0 / 358.5 MB, free: 8.535 MB / 314.7 MB Notification: Performance of Templates: time 0.03135/0.2538, allocations: 24.33 MB / 382.8 MB, free: 0.6328 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 -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.444179607089609]