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.001319/0.001319, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001727/0.003045, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001113/0.001113, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00129/0.002403, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9667/0.9667, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07896/1.046, allocations: 53.87 MB / 243.7 MB, free: 14.9 MB / 250.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.944e-06/1.944e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.663e-05/1.858e-05, allocations: 2.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008328/0.008347, allocations: 10.65 MB / 255.7 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00449/0.01284, allocations: 3.757 MB / 259.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005253/0.01336, allocations: 91.38 kB / 259.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.01439, allocations: 0.8305 MB / 260.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001201/0.01559, allocations: 0.9623 MB / 261.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.01607, allocations: 459.3 kB / 261.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001695/0.01776, allocations: 3.058 MB / 264.8 MB, free: 9.746 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.01898, allocations: 1.556 MB / 266.4 MB, free: 8.109 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001926/0.02091, allocations: 2.672 MB / 269.1 MB, free: 5.418 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001043/0.02195, allocations: 1.5 MB / 270.6 MB, free: 3.914 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002753/0.02222, allocations: 356 kB / 270.9 MB, free: 3.566 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005039/0.02273, allocations: 475.7 kB / 271.4 MB, free: 3.102 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005286/0.02326, allocations: 0.8689 MB / 272.2 MB, free: 2.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007022/0.02396, allocations: 0.9084 MB / 273.1 MB, free: 1.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1033/0.1273, allocations: 2.454 MB / 275.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-05/0.1273, allocations: 0 / 275.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1273, allocations: 0.9688 kB / 275.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001208/0.1274, allocations: 0 / 275.6 MB, free: 8.719 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.005195/0.1326, allocations: 3.702 MB / 279.3 MB, free: 7.391 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1327, allocations: 12 kB / 279.3 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.1337, allocations: 0.521 MB / 279.8 MB, free: 7.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.1357, allocations: 1.313 MB / 281.1 MB, free: 6.812 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.1359, allocations: 192 kB / 281.3 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003089/0.1362, allocations: 249.5 kB / 281.6 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002652/0.1388, allocations: 1.857 MB / 283.4 MB, free: 6.477 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.169e-05/0.1389, allocations: 9.688 kB / 283.4 MB, free: 6.473 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000187/0.1391, allocations: 106.8 kB / 283.5 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00012/0.1392, allocations: 125.8 kB / 283.7 MB, free: 6.461 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.1406, allocations: 0.741 MB / 284.4 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007146/0.1478, allocations: 6.922 MB / 291.3 MB, free: 3.566 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006265/0.1484, allocations: 0.5163 MB / 291.8 MB, free: 3.484 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003506/0.1487, allocations: 260.7 kB / 292.1 MB, free: 3.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001571/0.1489, allocations: 60.22 kB / 292.2 MB, free: 3.473 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.1489, allocations: 48.42 kB / 292.2 MB, free: 3.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.575e-06/0.1489, allocations: 0 / 292.2 MB, free: 3.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.00535/0.1543, allocations: 2.959 MB / 295.2 MB, free: 2.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.076e-05/0.1543, allocations: 65.5 kB / 295.2 MB, free: 2.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008142/0.1551, allocations: 1.18 MB / 296.4 MB, free: 2.562 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.603e-05/0.1552, allocations: 49.2 kB / 296.5 MB, free: 2.531 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003528/0.1555, allocations: 1.098 MB / 297.6 MB, free: 1.875 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000177/0.1557, allocations: 445.8 kB / 298 MB, free: 1.559 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/0.156, allocations: 277 kB / 298.3 MB, free: 1.441 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.209e-05/0.156, allocations: 303.3 kB / 298.6 MB, free: 1.145 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002601/0.1563, allocations: 184.9 kB / 298.7 MB, free: 1.125 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003773/0.1566, allocations: 0.6776 MB / 299.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008496/0.1575, allocations: 1.046 MB / 300.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.1575, allocations: 7.719 kB / 300.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001429/0.1589, allocations: 1.031 MB / 301.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.1589, allocations: 12 kB / 301.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.159, allocations: 19.56 kB / 301.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002853/0.1592, allocations: 124.6 kB / 301.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.1603, allocations: 407.4 kB / 302.1 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.1616, allocations: 2.424 MB / 304.5 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006001/0.1622, allocations: 55.94 kB / 304.5 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.371e-05/0.1623, allocations: 59.98 kB / 304.6 MB, free: 11.93 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.0003894/0.1627, allocations: 224.5 kB / 304.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/0.1629, allocations: 143.4 kB / 305 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.1641, allocations: 0.7708 MB / 305.7 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/0.1641, allocations: 18.39 kB / 305.7 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1641, allocations: 8 kB / 305.7 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.629e-06/0.1641, allocations: 3.984 kB / 305.8 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003473/0.1676, allocations: 2.123 MB / 307.9 MB, free: 8.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.1676, allocations: 4 kB / 307.9 MB, free: 8.789 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007382/0.1683, allocations: 245.5 kB / 308.1 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003778/0.1687, allocations: 222.7 kB / 308.3 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.169, allocations: 151.8 kB / 308.5 MB, free: 8.18 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-05/0.1691, allocations: 28.03 kB / 308.5 MB, free: 8.152 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.1703, allocations: 2.398 MB / 310.9 MB, free: 5.598 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1703, allocations: 4 kB / 310.9 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005362/0.1756, allocations: 1.11 MB / 312 MB, free: 4.445 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.1758, allocations: 24 kB / 312 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000343/0.1762, allocations: 44.03 kB / 312.1 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.797e-05/0.1762, allocations: 88.84 kB / 312.2 MB, free: 4.289 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.1763, allocations: 20 kB / 312.2 MB, free: 4.27 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004525/0.1767, allocations: 0.5836 MB / 312.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1767, allocations: 0 / 312.8 MB, free: 3.758 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000788/0.1775, allocations: 463.9 kB / 313.2 MB, free: 3.305 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.0003236/0.1778, allocations: 181.2 kB / 313.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.1792, allocations: 0.9899 MB / 314.4 MB, free: 2.199 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.194e-05/0.1792, allocations: 36.42 kB / 314.4 MB, free: 2.164 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005006/0.1797, allocations: 0.597 MB / 315 MB, free: 1.578 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.1808, allocations: 0.5579 MB / 315.6 MB, free: 1.039 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/0.1953, allocations: 4.241 MB / 319.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.1958, allocations: 0.5807 MB / 320.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006379/0.1964, allocations: 247 kB / 320.7 MB, free: 11.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007104/0.1971, allocations: 451.1 kB / 321.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of SimCode: time 1.433e-06/0.1971, allocations: 0 / 321.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of Templates: time 0.03296/0.2301, allocations: 26.05 MB / 347.1 MB, free: 1.879 MB / 314.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 -emit_protected -ignoreHideResult -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.1452191257849336]