Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009182/0.0009182, allocations: 164.2 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9744/0.9744, allocations: 177 MB / 205.2 MB, free: 5.078 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.93e-05/2.1e-05, allocations: 5.406 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.009256/0.009277, allocations: 10.59 MB / 284 MB, free: 6.375 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004903/0.01418, allocations: 3.722 MB / 287.8 MB, free: 2.637 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007521/0.01493, allocations: 87.44 kB / 287.8 MB, free: 2.551 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.01614, allocations: 0.842 MB / 288.7 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.01784, allocations: 0.9468 MB / 289.6 MB, free: 0.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005583/0.0184, allocations: 467.2 kB / 290.1 MB, free: 300 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1227/0.1411, allocations: 3.048 MB / 293.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001982/0.1431, allocations: 1.545 MB / 294.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003226/0.1463, allocations: 2.488 MB / 297.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002176/0.1485, allocations: 1.498 MB / 298.7 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007696/0.1493, allocations: 357.5 kB / 299 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008382/0.1501, allocations: 469.1 kB / 299.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007577/0.1509, allocations: 1.057 MB / 300.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001331/0.1522, allocations: 1.104 MB / 301.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002716/0.1549, allocations: 2.627 MB / 304.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1549, allocations: 0 / 304.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1549, allocations: 0 / 304.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.467e-05/0.155, allocations: 0 / 304.3 MB, free: 12.79 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.003572/0.1586, allocations: 3.102 MB / 307.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.1586, allocations: 7.969 kB / 307.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008408/0.1595, allocations: 456.3 kB / 307.8 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001756/0.1612, allocations: 1.312 MB / 309.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.1613, allocations: 187.4 kB / 309.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002579/0.1616, allocations: 252.7 kB / 309.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.1637, allocations: 1.86 MB / 311.4 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.478e-05/0.1637, allocations: 4 kB / 311.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.1639, allocations: 107.6 kB / 311.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.576e-05/0.164, allocations: 132.9 kB / 311.7 MB, free: 8.793 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.1652, allocations: 0.7438 MB / 312.4 MB, free: 8.023 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006128/0.1714, allocations: 6.893 MB / 319.3 MB, free: 1.336 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/0.1719, allocations: 0.5179 MB / 319.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002932/0.1722, allocations: 274 kB / 320.1 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001316/0.1723, allocations: 52.97 kB / 320.1 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.1723, allocations: 47.56 kB / 320.2 MB, free: 480 kB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.104e-06/0.1723, allocations: 0 / 320.2 MB, free: 480 kB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.004631/0.177, allocations: 2.948 MB / 323.1 MB, free: 13.54 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.025e-05/0.177, allocations: 64.41 kB / 323.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007767/0.1778, allocations: 1.183 MB / 324.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.532e-05/0.1778, allocations: 45.7 kB / 324.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004407/0.1783, allocations: 1.094 MB / 325.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.1785, allocations: 446.7 kB / 325.9 MB, free: 11 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.1787, allocations: 282.7 kB / 326.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.283e-05/0.1788, allocations: 305.1 kB / 326.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.179, allocations: 182.7 kB / 326.7 MB, free: 10.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006717/0.1797, allocations: 0.6842 MB / 327.4 MB, free: 9.406 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008421/0.1806, allocations: 1.055 MB / 328.4 MB, free: 8.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.1806, allocations: 4 kB / 328.4 MB, free: 8.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001164/0.1817, allocations: 1.035 MB / 329.5 MB, free: 7.277 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.1817, allocations: 12 kB / 329.5 MB, free: 7.266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.1818, allocations: 16 kB / 329.5 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002425/0.182, allocations: 122.9 kB / 329.6 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007376/0.1827, allocations: 384 kB / 330 MB, free: 6.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.1839, allocations: 2.421 MB / 332.4 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.1843, allocations: 63.94 kB / 332.5 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.959e-05/0.1844, allocations: 55.98 kB / 332.5 MB, free: 4.086 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.0003383/0.1847, allocations: 218 kB / 332.8 MB, free: 3.887 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.1849, allocations: 147.8 kB / 332.9 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008768/0.1858, allocations: 0.7735 MB / 333.7 MB, free: 2.953 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.1858, allocations: 12 kB / 333.7 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1858, allocations: 4 kB / 333.7 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1858, allocations: 3.984 kB / 333.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.1884, allocations: 2.121 MB / 335.8 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1884, allocations: 4 kB / 335.8 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005341/0.189, allocations: 229.7 kB / 336 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000253/0.1892, allocations: 153.1 kB / 336.2 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.1893, allocations: 20 kB / 336.2 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009892/0.1903, allocations: 2.409 MB / 338.6 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1903, allocations: 0 / 338.6 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.1914, allocations: 1.112 MB / 339.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002849/0.1917, allocations: 226.7 kB / 339.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.1918, allocations: 20 kB / 340 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.1921, allocations: 40.05 kB / 340 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.1922, allocations: 84.12 kB / 340.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.1923, allocations: 27.98 kB / 340.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004361/0.1927, allocations: 0.5814 MB / 340.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1927, allocations: 0 / 340.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008493/0.1935, allocations: 467.9 kB / 341.2 MB, free: 11.48 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.0002679/0.1938, allocations: 178.6 kB / 341.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.195, allocations: 0.9885 MB / 342.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.784e-05/0.195, allocations: 25.81 kB / 342.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004961/0.1955, allocations: 0.5916 MB / 342.9 MB, free: 9.762 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.1965, allocations: 455.5 kB / 343.4 MB, free: 9.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.2009, allocations: 4.093 MB / 347.5 MB, free: 5.207 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005164/0.2014, allocations: 0.5717 MB / 348 MB, free: 4.609 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006661/0.2021, allocations: 243.1 kB / 348.3 MB, free: 4.367 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009398/0.203, allocations: 455 kB / 348.7 MB, free: 3.914 MB / 298.7 MB Notification: Performance of SimCode: time 7.81e-07/0.203, allocations: 3.281 kB / 348.7 MB, free: 3.914 MB / 298.7 MB Notification: Performance of Templates: time 0.03783/0.2409, allocations: 24.91 MB / 373.6 MB, free: 11.5 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.1889156149700284]